Workaround or a VS miscompilation bug

llvm-svn: 14078
This commit is contained in:
Chris Lattner 2004-06-08 23:21:39 +00:00
parent 8b52a68356
commit 74248512eb
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ bool ConstantSInt::isValueValidForType(const Type *Ty, int64_t Val) {
case Type::ShortTyID:
return (Val <= INT16_MAX && Val >= INT16_MIN);
case Type::IntTyID:
return (Val <= INT32_MAX && Val >= INT32_MIN);
return (Val <= int(INT32_MAX) && Val >= int(INT32_MIN));
case Type::LongTyID:
return true; // This is the largest type...
}