|
From: <sv...@va...> - 2013-02-02 00:10:46
|
florian 2013-02-02 00:10:36 +0000 (Sat, 02 Feb 2013)
New Revision: 2674
Log:
Shifting an int and assigning it to a long could be trouble.
It isn't here, but let's make the code clear in this respect.
Modified files:
trunk/priv/guest_ppc_toIR.c
Modified: trunk/priv/guest_ppc_toIR.c (+2 -1)
===================================================================
--- trunk/priv/guest_ppc_toIR.c 2013-02-01 16:11:51 +00:00 (rev 2673)
+++ trunk/priv/guest_ppc_toIR.c 2013-02-02 00:10:36 +00:00 (rev 2674)
@@ -2756,7 +2756,8 @@
shft = 4*(7-fld);
else
shft = 4*(15-fld);
- mask = 0xF<<shft;
+ mask = 0xF;
+ mask = mask << shft;
switch (reg) {
case PPC_GST_CR:
|