Browse Source

Lua : map rshift and arshift to the right operators

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

+ 2 - 2
genlua.ml

@@ -1057,8 +1057,8 @@ and gen_bitop ctx op e1 e2 =
         | Ast.OpXor  ->  "bxor"
         | Ast.OpAnd  ->  "band"
         | Ast.OpShl  ->  "lshift"
-        | Ast.OpShr  ->  "rshift"
-        | Ast.OpUShr ->  "arshift"
+        | Ast.OpShr  ->  "arshift"
+        | Ast.OpUShr ->  "rshift"
         | Ast.OpOr   ->  "bor"
         | _ -> "");
     gen_value ctx e1;