Skip to content

Commit b079cf7

Browse files
authored
Fix regression from commit 69332fb (#1123)
Commit 69332fb is a cherry-pick of bellard/quickjs@9bd10d8 but changed the type of a field from uint8_t to bool. That normally would have been fine except that the layouts of JSVarRef and JSGCObjectHeader need to match. They did on architectures where sizeof(bool) == sizeof(char) but that is not the case on at least powerpc and probably others.
1 parent 0191aea commit b079cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ typedef struct JSVarRef {
374374
struct {
375375
int __gc_ref_count; /* corresponds to header.ref_count */
376376
uint8_t __gc_mark; /* corresponds to header.mark/gc_obj_type */
377-
bool is_detached;
377+
uint8_t is_detached;
378378
};
379379
};
380380
JSValue *pvalue; /* pointer to the value, either on the stack or

0 commit comments

Comments
 (0)