Commit be60bbed authored by zolliker's avatar zolliker
Browse files

- fixed 64bit issue

parent 68b4f57b
......@@ -466,7 +466,7 @@ int EaseUpdate(int flag)
if (ParActionIs(PAR_SET) > 0) {
assert(flag >= 0);
assert(flag <= eab->maxflag);
eab->updateFlags[flag / EASE_FLAGBITS] |= 1 << (flag % EASE_FLAGBITS);
eab->updateFlags[flag / EASE_FLAGBITS] |= (unsigned long)1 << (flag % EASE_FLAGBITS);
if (eab->task)
FsmSpeed(eab->task);
return 1;
......@@ -487,7 +487,7 @@ int EaseNextUpdate(void *object)
p = 1;
flag = 0;
/* find first */
while (flag < 32) {
while (flag < EASE_FLAGBITS) {
if (mask & p) {
eab->updateFlags[i] &= ~p;
return flag + i * EASE_FLAGBITS;
......@@ -508,7 +508,7 @@ int EaseGetUpdate(void *object, int flag)
assert(flag >= 0);
assert(flag <= eab->maxflag);
i = flag / EASE_FLAGBITS;
if ((1 << (flag % EASE_FLAGBITS)) & eab->updateFlags[i]) {
if (((unsigned long)1 << (flag % EASE_FLAGBITS)) & eab->updateFlags[i]) {
return 1;
}
return 0;
......@@ -523,10 +523,10 @@ void EaseSetUpdate(void *object, int flag, int state)
assert(flag <= eab->maxflag);
if (state) {
eab->updateFlags[flag / EASE_FLAGBITS] |= 1 << (flag % EASE_FLAGBITS);
eab->updateFlags[flag / EASE_FLAGBITS] |= (unsigned long)1 << (flag % EASE_FLAGBITS);
} else {
eab->updateFlags[flag / EASE_FLAGBITS] &=
~(1 << (flag % EASE_FLAGBITS));
~((unsigned long)1 << (flag % EASE_FLAGBITS));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment