Hugo Musso Gualandi %!s(int64=5) %!d(string=hai) anos
pai
achega
2469a4b6df
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/luaot.c

+ 6 - 1
src/luaot.c

@@ -824,7 +824,12 @@ void create_function(Proto *p)
                 println("      Protect(luaT_trybinTM(L, rb, rb, ra, TM_BNOT));");
                 break;
             }
-            // case OP_NOT
+            case OP_NOT: {
+                println("    TValue *rb = vRB(i);");
+                println("    int nrb = l_isfalse(rb);  /* next assignment may change this value */");
+                println("    setbvalue(s2v(ra), nrb);");
+                break;
+            }
             // case OP_LEN
             // case OP_CONCAT
             // case OP_CLOSE