24 lines
749 B
Text
24 lines
749 B
Text
$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);
|
|
}
|