fix longCompareCR on 64-bit systems

This commit is contained in:
Joel Dice 2008-06-17 09:32:46 -06:00
parent 575df206cd
commit 3d84f31c13

View File

@ -1825,10 +1825,10 @@ longCompareCR(Context* c, unsigned size UNUSED, Assembler::Constant* a,
int64_t v = a->value->value();
ResolvedPromise low(v & 0xFFFFFFFF);
ResolvedPromise low(v & ~static_cast<uintptr_t>(0));
Assembler::Constant al(&low);
ResolvedPromise high((v >> 32) & 0xFFFFFFFF);
ResolvedPromise high((v >> 32) & ~static_cast<uintptr_t>(0));
Assembler::Constant ah(&high);
Assembler::Register bh(b->high);