Squish a warning

llvm-svn: 14020
This commit is contained in:
Chris Lattner 2004-06-04 20:14:29 +00:00
parent db1b83334e
commit 4bd463c15e

View File

@ -305,7 +305,7 @@ bool StructType::indexValid(const Value *V) const {
//
const Type *StructType::getTypeAtIndex(const Value *V) const {
assert(indexValid(V) && "Invalid structure index!");
unsigned Idx = cast<ConstantUInt>(V)->getValue();
unsigned Idx = (unsigned)cast<ConstantUInt>(V)->getValue();
return ContainedTys[Idx];
}