Skip to content

Commit a2013dd

Browse files
author
Mike Pall
committed
Fix cross-endian jit.bcsave for MIPS target.
1 parent fb61f7c commit a2013dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jit/bcsave.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ typedef struct {
239239
hdr.type = f16(1)
240240
hdr.machine = f16(({ x86=3, x64=62, arm=40, ppc=20, ppcspe=20, mips=8, mipsel=8 })[ctx.arch])
241241
if ctx.arch == "mips" or ctx.arch == "mipsel" then
242-
hdr.flags = 0x50001006
242+
hdr.flags = f32(0x50001006)
243243
end
244244
hdr.version = f32(1)
245245
hdr.shofs = fofs(ffi.offsetof(o, "sect"))

0 commit comments

Comments
 (0)