Skip to content

Commit 7eca1ca

Browse files
committed
more static casting
1 parent a6301d6 commit 7eca1ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/clang/lib/AST/HlslTypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,8 @@ bool GetHLSLSubobjectKind(clang::QualType type,
692692
}
693693

694694
HLSLSubObjectAttr *Attr = RD->getAttr<HLSLSubObjectAttr>();
695-
subobjectKind = (DXIL::SubobjectKind)Attr->getSubObjKindUint();
696-
hgType = (DXIL::HitGroupType)Attr->getHitGroupType();
695+
subobjectKind = static_cast<DXIL::SubobjectKind>(Attr->getSubObjKindUint());
696+
hgType = static_cast<DXIL::HitGroupType>(Attr->getHitGroupType());
697697
if (subobjectKind == DXIL::SubobjectKind::HitGroup)
698698
DXASSERT(DXIL::IsValidHitGroupType(hgType), "invalid hit group type");
699699

0 commit comments

Comments
 (0)