Browse Source

Lua: add _G namespace for bit operations

Justin Donaldson 10 years ago
parent
commit
4e8cdd3be2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genlua.ml

+ 1 - 1
genlua.ml

@@ -1053,7 +1053,7 @@ and gen_tbinop ctx op e1 e2 =
     );
 
 and gen_bitop ctx op e1 e2 =
-    print ctx "bit.%s(" (match op with
+    print ctx "_G.bit.%s(" (match op with
         | Ast.OpXor  ->  "bxor"
         | Ast.OpAnd  ->  "band"
         | Ast.OpShl  ->  "lshift"