Skip to content

Commit

Permalink
fix: nested member access
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para authored and saghul committed Jun 5, 2024
1 parent e5673a8 commit 8ac7c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickjs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8ac7c0d

Please sign in to comment.