X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fnasal%2Fdata.h;h=deb4fbdc194abd2618edb510d3cbbb8b0aef750c;hb=423eba373389684061fc0a8c7b78292f10011ed7;hp=8f1715a332a9ce020103ba48aaf483fabcb67d55;hpb=dd1ea541ecc4403bcea2ca8c60c03971d1f4338f;p=simgear.git diff --git a/simgear/nasal/data.h b/simgear/nasal/data.h index 8f1715a3..deb4fbdc 100644 --- a/simgear/nasal/data.h +++ b/simgear/nasal/data.h @@ -49,10 +49,11 @@ // On 32 bit systems where the pointer is half the width of the // double, we store a special magic number in the structure to make -// the double a NaN. This must appear in the top bits of the double, +// the double a qNaN. This must appear in the top bits of the double, // which is why the structure layout is endianness-dependent. +// qNaN (quiet NaNs) use range 0x7ff80000-0x7fffffff -#define NASAL_REFTAG 0x7ff56789 // == 2,146,789,257 decimal +#define NASAL_REFTAG 0x7fff6789 // == 2,147,444,617 decimal #define IS_REF(r) ((r).ref.reftag == NASAL_REFTAG) #define PTR(r) ((r).ref.ptr)