Adding some explicit casts to appease build bots; NFC

This commit is contained in:
Aaron Ballman 2020-11-16 09:13:24 -05:00
parent 7c6412e0cc
commit f7c881b89e
1 changed files with 2 additions and 2 deletions

View File

@ -1094,8 +1094,8 @@ bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind,
}
void DeclSpec::SaveWrittenBuiltinSpecs() {
writtenBS.Sign = getTypeSpecSign();
writtenBS.Width = getTypeSpecWidth();
writtenBS.Sign = static_cast<int>(getTypeSpecSign());
writtenBS.Width = static_cast<int>(getTypeSpecWidth());
writtenBS.Type = getTypeSpecType();
// Search the list of attributes for the presence of a mode attribute.
writtenBS.ModeAttr = getAttributes().hasAttribute(ParsedAttr::AT_Mode);