Skip to content

Commit

Permalink
patch arm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Jun 15, 2024
1 parent d970271 commit 0824b99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vendor/quickjs/quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -32053,6 +32053,7 @@ static void push_short_int(DynBuf *bc_out, int val)
dbuf_putc(bc_out, OP_push_0 + val);
return;
}
#if !defined(__EMSCRIPTEN__) // Workaround for WebKit WASM https://github.com/justjake/quickjs-emscripten/issues/166
if (val == (int8_t)val) {
dbuf_putc(bc_out, OP_push_i8);
dbuf_putc(bc_out, val);
Expand All @@ -32063,6 +32064,7 @@ static void push_short_int(DynBuf *bc_out, int val)
dbuf_put_u16(bc_out, val);
return;
}
#endif // !defined(__EMSCRIPTEN__)
#endif
dbuf_putc(bc_out, OP_push_i32);
dbuf_put_u32(bc_out, val);
Expand Down

0 comments on commit 0824b99

Please sign in to comment.