mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -791,7 +791,7 @@ uint32_t APInt::countLeadingOnes() const {
|
|||||||
|
|
||||||
uint32_t APInt::countTrailingZeros() const {
|
uint32_t APInt::countTrailingZeros() const {
|
||||||
if (isSingleWord())
|
if (isSingleWord())
|
||||||
return std::min(CountTrailingZeros_64(VAL), BitWidth);
|
return std::min(uint32_t(CountTrailingZeros_64(VAL)), BitWidth);
|
||||||
uint32_t Count = 0;
|
uint32_t Count = 0;
|
||||||
uint32_t i = 0;
|
uint32_t i = 0;
|
||||||
for (; i < getNumWords() && pVal[i] == 0; ++i)
|
for (; i < getNumWords() && pVal[i] == 0; ++i)
|
||||||
|
Reference in New Issue
Block a user