diff options
-rw-r--r-- | sim/sh/gencode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index c121d53..8246e894 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -2350,7 +2350,7 @@ static op ppi_tab[] = " res = 31;", "do", " {", - " if (Sx & ~0 << i)", + " if (Sx & ((unsigned)~0 << i))", " {", " res -= i;", " Sx >>= i;", @@ -2373,7 +2373,7 @@ static op ppi_tab[] = "res = 31;", "do", " {", - " if (Sy & ~0 << i)", + " if (Sy & ((unsigned)~0 << i))", " {", " res -= i;", " Sy >>= i;", |