1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Explicitly cast the second argument to unsigned in order to select the

desired overload.

This is a bit of a hackish workaround to fix the compile after r135259.
Let me know if there is a better approach.

llvm-svn: 135261
This commit is contained in:
Chandler Carruth 2011-07-15 07:31:10 +00:00
parent 4d5d3fceaa
commit cbac5b4434

View File

@ -2098,7 +2098,7 @@ APFloat::convertToInteger(APSInt &result,
opStatus status = convertToInteger(
parts.data(), bitWidth, result.isSigned(), rounding_mode, isExact);
// Keeps the original signed-ness.
result = APInt(bitWidth, parts.size(), parts.data());
result = APInt(bitWidth, (unsigned)parts.size(), parts.data());
return status;
}