static naRef propNodeGhostCreate(naContext c, SGPropertyNode* n)
{
+ if(!n) return naNil();
SGPropertyNode_ptr* ghost = new SGPropertyNode_ptr(n);
return naNewGhost(c, &PropNodeGhostType, ghost);
}
static naRef f_setIntValue(naContext c, naRef args)
{
NODEARG();
- int iv = (int)naNumValue(naVec_get(args, 0)).num;
+ // Original code:
+ // int iv = (int)naNumValue(naVec_get(args, 0)).num;
+
+ // Junk to pacify the gcc-2.95.3 optimizer:
+ naRef tmp0 = naVec_get(args, 0);
+ naRef tmp1 = naNumValue(tmp0);
+ double tmp2 = tmp1.num;
+ int iv = (int)tmp2;
+
(*node)->setIntValue(iv);
return naNil();
}