fix: nested member access

This commit is contained in:
nekosu 2024-06-05 20:22:15 +08:00 committed by Saúl Ibarra Corretgé
parent e5673a8e68
commit 8ac7c0d51f

View file

@ -182,7 +182,7 @@ typedef struct JSValue {
#define JS_TAG_IS_FLOAT64(tag) ((unsigned)(tag) == JS_TAG_FLOAT64) #define JS_TAG_IS_FLOAT64(tag) ((unsigned)(tag) == JS_TAG_FLOAT64)
#define JS_NAN (JSValue){ .u.float64 = JS_FLOAT64_NAN, JS_TAG_FLOAT64 } #define JS_NAN (JSValue){ (JSValueUnion){ .float64 = JS_FLOAT64_NAN }, JS_TAG_FLOAT64 }
static inline JSValue __JS_NewFloat64(double d) static inline JSValue __JS_NewFloat64(double d)
{ {