Skip to content

Commit 736af8f

Browse files
committed
Fix implicit Slang::Int -> int32_t cast
1 parent b2bf3cc commit 736af8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: source/slang/slang-check-modifier.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ Modifier* SemanticsVisitor::checkModifier(
19171917
auto specConstVarDecl = getASTBuilder()->create<VarDecl>();
19181918
auto constantIdModifier =
19191919
getASTBuilder()->create<VkConstantIdAttribute>();
1920-
constantIdModifier->location = specConstId;
1920+
constantIdModifier->location = (int32_t)specConstId;
19211921
specConstVarDecl->type.type = getASTBuilder()->getIntType();
19221922
addModifier(specConstVarDecl, constantIdModifier);
19231923
decl->parentDecl->addMember(specConstVarDecl);

0 commit comments

Comments
 (0)