[llvm-commits] [llvm] r45342 - /llvm/trunk/lib/Support/APInt.cpp
Anton Korobeynikov
asl at math.spbu.ru
Mon Dec 24 03:16:49 PST 2007
Author: asl
Date: Mon Dec 24 05:16:47 2007
New Revision: 45342
URL: http://llvm.org/viewvc/llvm-project?rev=45342&view=rev
Log:
Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case
Modified:
llvm/trunk/lib/Support/APInt.cpp
Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=45342&r1=45341&r2=45342&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Mon Dec 24 05:16:47 2007
@@ -791,7 +791,7 @@
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)
More information about the llvm-commits
mailing list