From 8891468d1b2ebe72bca971de490199530e315c7b Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Wed, 28 Nov 2018 12:28:00 +0330 Subject: [PATCH] ncc: the sign of the result of unary operators should be preserved This solves an issue that appeared in 36a449c8. --- ncc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncc.c b/ncc.c index 02ff463..b0ec4b9 100644 --- a/ncc.c +++ b/ncc.c @@ -405,7 +405,7 @@ static unsigned bt_op(unsigned bt1, unsigned bt2) /* the result of a unary operation on variables of bt */ static unsigned bt_uop(unsigned bt) { - return bt_op(bt, UINT); + return bt_op(bt, SINT); } /* push the result of a binary operation on the type stack */ -- 2.11.4.GIT