]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix cross-endian jit.bcsave for MIPS target.
authorMike Pall <mike>
Tue, 17 Jan 2017 09:46:45 +0000 (10:46 +0100)
committerMike Pall <mike>
Tue, 17 Jan 2017 09:46:45 +0000 (10:46 +0100)
src/jit/bcsave.lua

index 5c417c068880b0bc87970c897212dfe386683311..70b92aafefb8393464a5fd0f812d9867f75824ef 100644 (file)
@@ -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"))