From 8ac7c0d51fe536be82563a8cde086b44821a9116 Mon Sep 17 00:00:00 2001 From: nekosu Date: Wed, 5 Jun 2024 20:22:15 +0800 Subject: [PATCH] fix: nested member access --- quickjs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.h b/quickjs.h index a79a688..7d741de 100644 --- a/quickjs.h +++ b/quickjs.h @@ -182,7 +182,7 @@ typedef struct JSValue { #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) {