aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--c/c.c5
-rw-r--r--test/external/lua-5.4.0/src/liblua.abin527052 -> 0 bytes
-rwxr-xr-xtest/external/lua-5.4.0/src/luacbin264168 -> 0 bytes
3 files changed, 3 insertions, 2 deletions
diff --git a/c/c.c b/c/c.c
index 681e71c..c206ec8 100644
--- a/c/c.c
+++ b/c/c.c
@@ -3484,8 +3484,9 @@ compileexpr(struct function *fn, const struct expr *ex, bool discard)
l = genload(fn, ex->ty, adr, ex->qual & QVOLATILE);
if ((op != Oadd && op != Osub) || cls != KPTR) {
l = cvt(fn, ty, sub[0].ty, l);
- r = cvt(fn, ex->ty, sub[1].ty, r);
- q = irbinop(fn, op, cls, l, r);
+ r = cvt(fn, ty, sub[1].ty, r);
+ q = irbinop(fn, op, type2cls[ty.t], l, r);
+ q = cvt(fn, ex->ty, ty, q);
} else {
q = genptroff(fn, op, typesize(typechild(ex->ty)), l, sub[1].ty, r);
}
diff --git a/test/external/lua-5.4.0/src/liblua.a b/test/external/lua-5.4.0/src/liblua.a
deleted file mode 100644
index 9aa32ed..0000000
--- a/test/external/lua-5.4.0/src/liblua.a
+++ /dev/null
Binary files differ
diff --git a/test/external/lua-5.4.0/src/luac b/test/external/lua-5.4.0/src/luac
deleted file mode 100755
index 00e7a27..0000000
--- a/test/external/lua-5.4.0/src/luac
+++ /dev/null
Binary files differ