ソースを参照

Lua: add _G namespace for bit operations

Justin Donaldson 10 年 前
コミット
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"