]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix silly bug in folding rule. This 'silly bug' took hours to track
authorJulian Seward <jseward@acm.org>
Fri, 6 May 2005 16:29:26 +0000 (16:29 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 6 May 2005 16:29:26 +0000 (16:29 +0000)
down.  Bah.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1167

VEX/priv/ir/iropt.c

index 45df01c8375b8e596ad5149a839a0c06c3c74343..f115310c23b05f7f988e44da88231d94bb8b9b4a 100644 (file)
@@ -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: {