aboutsummaryrefslogtreecommitdiff
path: root/libtcc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc1.c')
-rw-r--r--libtcc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtcc1.c b/libtcc1.c
index a06016e..747cb12 100644
--- a/libtcc1.c
+++ b/libtcc1.c
@@ -466,7 +466,7 @@ long long __shldi3(long long a, int b)
u.s.high = (unsigned)u.s.low << (b - 32);
u.s.low = 0;
} else if (b != 0) {
- u.s.high = ((unsigned)u.s.high << b) | (u.s.low >> (32 - b));
+ u.s.high = ((unsigned)u.s.high << b) | ((unsigned)u.s.low >> (32 - b));
u.s.low = (unsigned)u.s.low << b;
}
return u.ll;