Browse Source

[lua] add bitop feature when using bit negation

Justin Donaldson 9 years ago
parent
commit
da39fa597c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/generators/genlua.ml

+ 1 - 0
src/generators/genlua.ml

@@ -753,6 +753,7 @@ and gen_expr ?(local=true) ctx e = begin
 		spr ctx "not ";
 		gen_value ctx e;
 	| TUnop (NegBits,unop_flag,e) ->
+		add_feature ctx "use._bitop";
 		spr ctx "_hx_bit.bnot(";
 		gen_value ctx e;
 		spr ctx ")";