]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Windows/ARM64: Fix typo in exception unwinding.
authorMike Pall <mike>
Mon, 11 Sep 2023 21:00:36 +0000 (23:00 +0200)
committerMike Pall <mike>
Mon, 11 Sep 2023 21:00:36 +0000 (23:00 +0200)
Thanks to Peter Cawley. #593

src/host/buildvm_peobj.c

index cdbb79b627532425b41cee483ad366b6626f6ed0..667cc3fc8266d1158318c805b42602bf63563e60 100644 (file)
@@ -362,7 +362,7 @@ void emit_peobj(BuildCtx *ctx)
 #define CSAVE_FREGS(r1,r2,o1) do { \
   int r, o; for (r = r1, o = o1; r <= r2; r += 2, o -= 16) CSAVE_FREGP(r, o); \
 } while (0)
-#define CSAVE_REG(r,o) CBE16(0xd000 | (((r) - 19) << 6) | (~(o) >> 3))
+#define CSAVE_REG(r,o) CBE16(0xd000 | (((r) - 19) << 6) | ((o) >> 3))
 #define CSAVE_REGX(r,o)        CBE16(0xd400 | (((r) - 19) << 5) | (~(o) >> 3))
 #define CADD_FP(s)     CBE16(0xe200 | ((s) >> 3))  /* s < 8*256 */
 #define CODE_NOP       0xe3