Browse Source

added ~ implementation for neko

Nicolas Cannasse 14 years ago
parent
commit
0fce0e8941
2 changed files with 3 additions and 1 deletions
  1. 2 0
      doc/CHANGES.txt
  2. 1 1
      genneko.ml

+ 2 - 0
doc/CHANGES.txt

@@ -2,6 +2,8 @@
 	all : optimized const == const and const != const (with different const types)
 	all : add Type.allEnums(e)
 	all : fixed some issue with completion
+	flash9 : fixed -D swfprotected with swc output
+	neko : added ~ implementation
 
 2011-09-25: 2.08
 	js : added js.JQuery

+ 1 - 1
genneko.ml

@@ -173,7 +173,7 @@ and gen_unop ctx p op flag e =
 	| Decrement -> (EBinop ((if flag = Prefix then "-=" else "--="), gen_expr ctx e , int p 1),p)
 	| Not -> call p (builtin p "not") [gen_expr ctx e]
 	| Neg -> (EBinop ("-",int p 0, gen_expr ctx e),p)
-	| NegBits -> error "Operation not available" e.epos
+	| NegBits -> (EBinop ("-",int p (-1), gen_expr ctx e),p)
 
 and gen_call ctx p e el =
 	match e.eexpr , el with