From: George Burgess IV Date: Thu, 22 Dec 2016 19:00:31 +0000 (+0000) Subject: Fix warning introduced by r290297. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d837577ecaad2f122e61b0be4a3993f0e0fd0e36;p=clang Fix warning introduced by r290297. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290356 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 114f684c42..f9b6a91a30 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -256,7 +256,7 @@ static bool checkPositiveIntArgument(Sema &S, const AttributeList &Attr, if (!checkUInt32Argument(S, Attr, Expr, UVal, Idx)) return false; - if (UVal > std::numeric_limits::max()) { + if (UVal > (uint32_t)std::numeric_limits::max()) { llvm::APSInt I(32); // for toString I = UVal; S.Diag(Expr->getExprLoc(), diag::err_ice_too_large)