2
0
Эх сурвалжийг харах

Lua: add _G namespace for bit operations

Justin Donaldson 10 жил өмнө
parent
commit
4e8cdd3be2
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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"