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.
This commit is contained in:
andy
2004-02-20 15:10:49 +00:00
parent 16ad232e0d
commit ea9d110036

View File

@@ -135,6 +135,7 @@ naRef naNil()
naRef naNum(double num)
{
naRef r;
r.ref.reftag = ~NASAL_REFTAG;
r.num = num;
return r;
}