diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-15 07:31:10 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-15 07:31:10 +0000 |
commit | e083805724196bd45a3612bf9373f503b5b8a7e0 (patch) | |
tree | 53012339f3f1a9009a1e100a605ee9e2c5c8d3a9 /lib/Support/APFloat.cpp | |
parent | 3d42bfbbdd26ac56ccd706d4ebee984490c72ecc (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r-- | lib/Support/APFloat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index a46cc8dfa4..c64da6e137 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -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; } |