diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/core/slang-type-text-util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-type-text-util.cpp b/source/core/slang-type-text-util.cpp index 8db294cdb..e9aa62048 100644 --- a/source/core/slang-type-text-util.cpp +++ b/source/core/slang-type-text-util.cpp @@ -237,7 +237,7 @@ UnownedStringSlice TypeTextUtil::getCompileTargetName(SlangCompileTarget target) { const Index index = _getTargetInfoIndex(target); // Return the first name - return index >= 0 ? StringUtil::getAtInSplit(UnownedStringSlice(s_compileTargetInfos[int(target)].names), ',', 0) : UnownedStringSlice(); + return index >= 0 ? StringUtil::getAtInSplit(UnownedStringSlice(s_compileTargetInfos[index].names), ',', 0) : UnownedStringSlice(); } } |
