1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-ai,v 1.3 2016/05/07 09:57:54 joerg Exp $
--- cmn/xetp.cpp.orig 2000-01-19 12:54:30.000000000 +0000
+++ cmn/xetp.cpp
@@ -29,9 +29,11 @@
#include "stdafx.h"
-#include <iostream.h>
+#include <inttypes.h>
+#include <iostream>
#if X11
-#include <strstream.h>
+#include <strstream>
+using namespace std;
#endif
#if WIN32
#include <strstrea.h>
@@ -159,7 +161,7 @@ void XETP::send_objects(OutStreamP out,c
for (n = 0; n < physicals.length(); n++) {
PhysicalP p = (PhysicalP)physicals.get(n);
// computing object_length twice, but who cares.
- _send_object(out,p,turn,(TickType)tickTypes.get(n),
+ _send_object(out,p,turn,(TickType)(intptr_t)tickTypes.get(n),
compute_object_length(p));
}
|