From: andy Date: Fri, 20 Feb 2004 15:10:49 +0000 (+0000) Subject: Fix from Richard Harke for 64 bit systems. The reftag was left X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ea9d1100362fd0e02923242f9c00ad6a2435658a;p=simgear.git Fix from Richard Harke for 64 bit systems. The reftag was left uninitialized by naNum(). If it happened to be constructing it on the stack in a location previously occupied by a real reference, it would generate a corrupt naRef. --- diff --git a/simgear/nasal/misc.c b/simgear/nasal/misc.c index 73bd19d2..acdca6a3 100644 --- a/simgear/nasal/misc.c +++ b/simgear/nasal/misc.c @@ -135,6 +135,7 @@ naRef naNil() naRef naNum(double num) { naRef r; + r.ref.reftag = ~NASAL_REFTAG; r.num = num; return r; }