This commit is contained in:
Vítor Santos Costa 2011-11-16 14:55:13 +00:00
parent 67820baee0
commit a09b7c5bb8

View File

@ -72,7 +72,7 @@ sub_int(Int i, Int j)
inline static Int
SLR(Int i, Int shift)
{
return (shift < sizeof(Int)*8-1 ? shift : (i >= 0 ? 0 : -1));
return (shift < sizeof(Int)*8-1 ? i >> shift : (i >= 0 ? 0 : -1));
}
#ifdef __GNUC__