Nicolas Cannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
f7c0c83ceb
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      hxsl/AgalOut.hx

+ 8 - 0
hxsl/AgalOut.hx

@@ -373,6 +373,14 @@ class AgalOut {
 			default:
 				throw "Discard cond not supported " + e.e;
 			}
+		case TUnop(uop, e):
+			switch( uop ) {
+			case OpNeg:
+				var r = expr(e);
+				op(ONeg(r, r));
+				return r;
+			default:
+			}
 		default:
 		}
 		throw "TODO " + e.e;