فهرست منبع

[lua] add bitop feature when using bit negation

Justin Donaldson 9 سال پیش
والد
کامیت
da39fa597c
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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 ")";