Explorar o código

[lua] add bitop feature when using bit negation

Justin Donaldson %!s(int64=9) %!d(string=hai) anos
pai
achega
da39fa597c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 ")";