Skip to content

Commit 806ab08

Browse files
authored
Fix typo in TypeTextUtil::getCompileTargetName(SlangCompileTarget target) (shader-slang#1332)
1 parent e45f8c1 commit 806ab08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/core/slang-type-text-util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ UnownedStringSlice TypeTextUtil::getCompileTargetName(SlangCompileTarget target)
237237
{
238238
const Index index = _getTargetInfoIndex(target);
239239
// Return the first name
240-
return index >= 0 ? StringUtil::getAtInSplit(UnownedStringSlice(s_compileTargetInfos[int(target)].names), ',', 0) : UnownedStringSlice();
240+
return index >= 0 ? StringUtil::getAtInSplit(UnownedStringSlice(s_compileTargetInfos[index].names), ',', 0) : UnownedStringSlice();
241241
}
242242

243243
}

0 commit comments

Comments
 (0)