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

[lua] add bitop feature when using bit negation

Justin Donaldson 9 жил өмнө
parent
commit
da39fa597c

+ 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 ")";