From: Julian Seward Date: Fri, 6 May 2005 16:29:26 +0000 (+0000) Subject: Fix silly bug in folding rule. This 'silly bug' took hours to track X-Git-Tag: svn/VALGRIND_3_0_1^2~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb9bb6b0a5873688c7a62d183e8e33e0abbadb3e;p=thirdparty%2Fvalgrind.git Fix silly bug in folding rule. This 'silly bug' took hours to track down. Bah. git-svn-id: svn://svn.valgrind.org/vex/trunk@1167 --- diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index 45df01c837..f115310c23 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -977,7 +977,7 @@ static IRExpr* fold_Expr ( IRExpr* e ) case Iop_64to16: { ULong w64 = e->Iex.Unop.arg->Iex.Const.con->Ico.U64; w64 &= 0xFFFFULL; - e2 = IRExpr_Const(IRConst_U16( (UChar)w64 )); + e2 = IRExpr_Const(IRConst_U16( (UShort)w64 )); break; } case Iop_64to32: {