diff options
-rw-r--r-- | sim/sh/interp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index c502b21..93923fa 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -701,7 +701,7 @@ do { \ #else #define MA(n) \ - do { memstalls += ((((long) PC & 3) != 0) ? (n) : ((n) - 1)); } while (0) + do { memstalls += ((((uintptr_t) PC & 3) != 0) ? (n) : ((n) - 1)); } while (0) #define L(x) thislock = x; #define TL(x) if ((x) == prevlock) stalls++; |