diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-12-24 11:16:47 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-12-24 11:16:47 +0000 |
commit | ee6af40c95457a22e729fd6f693dec56432a4352 (patch) | |
tree | f5b126bda8a68380f25a3ba8205816c5994df826 /llvm/lib/Support/APInt.cpp | |
parent | 563b21b01358e38603fc2d0012638c498d9ba792 (diff) | |
download | bcm5719-llvm-ee6af40c95457a22e729fd6f693dec56432a4352.tar.gz bcm5719-llvm-ee6af40c95457a22e729fd6f693dec56432a4352.zip |
Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case
llvm-svn: 45342
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 9fd11e93d70..688071af0ac 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -791,7 +791,7 @@ uint32_t APInt::countLeadingOnes() const { uint32_t APInt::countTrailingZeros() const { if (isSingleWord()) - return std::min(CountTrailingZeros_64(VAL), BitWidth); + return std::min(uint32_t(CountTrailingZeros_64(VAL)), BitWidth); uint32_t Count = 0; uint32_t i = 0; for (; i < getNumWords() && pVal[i] == 0; ++i) |