Sainan
unread,Nov 24, 2025, 8:15:41 AM (3 days ago) Nov 24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lu...@googlegroups.com
May I suggest a patch?
> luaV_objlen
-luaT_callTMres(L, tm, rb, rb, ra);
+luaT_callTMres(L, tm, rb, 0, ra);
> luaV_execute
-Protect(luaT_trybinTM(L, rb, rb, ra, TM_UNM));
+Protect(luaT_trybinTM(L, rb, 0, ra, TM_UNM));
...
-Protect(luaT_trybinTM(L, rb, rb, ra, TM_BNOT));
+Protect(luaT_trybinTM(L, rb, 0, ra, TM_BNOT));
> luaT_callTMres
-setobj2s(L, func + 2, p2); /* 2nd argument */
-L->top.p += 3;
+L->top.p += 2;
+if (p2) {
+ setobj2s(L, func + 2, p2); /* 2nd argument */
+ L->top.p += 1;
+}
-- Sainan