From efab0b7347b8ca287bf51f4c0400808b74b5eacf Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Wed, 16 Jun 2010 00:21:03 +0430 Subject: [PATCH] ncc: let shift amount be an unsigned --- ncc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ncc.c b/ncc.c index cc70716..330a474 100644 --- a/ncc.c +++ b/ncc.c @@ -332,12 +332,12 @@ static void ts_binop_add(void (*o_sth)(void)) } if (!t1.ptr && t2.ptr) if (type_szde(&t2) > 1) { - o_num(shifts(type_szde(&t2)), 1); + o_num(shifts(type_szde(&t2)), 4); o_shl(); } o_sth(); if (t1.ptr && t2.ptr) { - o_num(shifts(type_szde(&t1)), 1); + o_num(shifts(type_szde(&t1)), 4); o_shr(); ts_push_bt(4 | BT_SIGNED); } else { -- 2.11.4.GIT