Skip to content

Commit 8ac7c0d

Browse files
neko-parasaghul
authored andcommitted
fix: nested member access
1 parent e5673a8 commit 8ac7c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickjs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ typedef struct JSValue {
182182

183183
#define JS_TAG_IS_FLOAT64(tag) ((unsigned)(tag) == JS_TAG_FLOAT64)
184184

185-
#define JS_NAN (JSValue){ .u.float64 = JS_FLOAT64_NAN, JS_TAG_FLOAT64 }
185+
#define JS_NAN (JSValue){ (JSValueUnion){ .float64 = JS_FLOAT64_NAN }, JS_TAG_FLOAT64 }
186186

187187
static inline JSValue __JS_NewFloat64(double d)
188188
{

0 commit comments

Comments
 (0)