summaryrefslogtreecommitdiff
path: root/devel/tvision/patches/patch-ae
blob: 51f153c4bded31b6ab54c0e2a5e04d3f54a24435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ae,v 1.1 2008/01/24 19:27:10 rillig Exp $

The typeof keyword is not specified by ISO C99.

--- tvhc/tvhc.cc.orig	2008-01-24 15:17:52.000000000 +0100
+++ tvhc/tvhc.cc	2008-01-24 15:58:02.268189000 +0100
@@ -355,7 +355,7 @@ void recordReference( char *topic, opstr
         fixUp->pos = s.tellp();
         i = -1;
 //      s << i;
-	s << (typeof(ref->val.value))i;		// SC
+	s << i; // typeof(ref->val.value) == int
         fixUp->next = ref->val.fixUpList;
         ref->val.fixUpList = fixUp;
         }
@@ -371,7 +371,7 @@ void doFixUps( TFixUp *p, ushort value, 
         s.seekp(p->pos);
 //      s << value;
 	TReference *ref;			// SC
-	s << (typeof(ref->val.value))value;	//
+	s << (int)value;
         }
     s.seekp(pos);
 }