Fix error on some platforms

This commit is contained in:
Justin Ethier 2017-02-10 23:59:30 +00:00
parent f696dca7e1
commit 61383c6edb

View file

@ -149,12 +149,13 @@
Cyc_check_int(data,y);
int bf = (int)unbox_number(x);
int shift = (int)unbox_number(y);
int i;
if (shift > 0) {
for (int i = 0; i < shift; i++) {
for (i = 0; i < shift; i++) {
bf *= 2;
}
} else {
for (int i = 0; i < abs(shift); i++) {
for (i = 0; i < abs(shift); i++) {
bf /= 2;
}
}