aboutsummaryrefslogtreecommitdiff
path: root/libtcc1.c
diff options
context:
space:
mode:
authorgrischka <grischka>2007-11-14 17:34:30 +0000
committergrischka <grischka>2007-11-14 17:34:30 +0000
commit54bf8c05566a34f4d578ed6d33d6262dc924a703 (patch)
tree17b54b866e1b5e08af28f8eca73044bf6ee2d640 /libtcc1.c
parent2bcc187b1bbb6e3240400652af1a73cd799f250c (diff)
downloadtinycc-54bf8c05566a34f4d578ed6d33d6262dc924a703.tar.gz
tinycc-54bf8c05566a34f4d578ed6d33d6262dc924a703.tar.bz2
Import some changesets from Rob Landley's fork (part 1)
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;