1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

Cast to remove warning about comparing signed and unsigned.

llvm-svn: 59518
This commit is contained in:
Bill Wendling 2008-11-18 10:57:27 +00:00
parent 3cd13e7e65
commit 5ba12c88c1

View File

@ -732,7 +732,7 @@ static bool useSIToFPInst(ConstantFP &InitV, ConstantFP &ExitV,
// If the iteration range can be handled by SIToFPInst then use it.
APInt Max = APInt::getSignedMaxValue(32);
if (Max.getZExtValue() > abs(intEV - intIV))
if (Max.getZExtValue() > static_cast<uint64_t>(abs(intEV - intIV)))
return true;
return false;