Fix MSVC warnings.

This commit is contained in:
Matt Pharr
2012-04-20 10:50:39 -07:00
parent fe83ef7635
commit 4dfc596d38
3 changed files with 8 additions and 8 deletions

View File

@@ -549,7 +549,7 @@ rate_qualified_type_specifier
if ($2 == NULL)
$$ = NULL;
else {
int soaWidth = $1;
int soaWidth = (int)$1;
const StructType *st = dynamic_cast<const StructType *>($2);
if (st == NULL) {
Error(@1, "\"soa\" qualifier is illegal with non-struct type \"%s\".",