Skip to content

Commit

Permalink
Fix cross-endian jit.bcsave for MIPS target.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Jan 17, 2017
1 parent fb61f7c commit a2013dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jit/bcsave.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ typedef struct {
hdr.type = f16(1)
hdr.machine = f16(({ x86=3, x64=62, arm=40, ppc=20, ppcspe=20, mips=8, mipsel=8 })[ctx.arch])
if ctx.arch == "mips" or ctx.arch == "mipsel" then
hdr.flags = 0x50001006
hdr.flags = f32(0x50001006)
end
hdr.version = f32(1)
hdr.shofs = fofs(ffi.offsetof(o, "sect"))
Expand Down

0 comments on commit a2013dd

Please sign in to comment.