From 806ab08f64c76e961ecdf40ecaf9499c5a88ac5f Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 23 Apr 2020 10:04:10 -0400 Subject: Fix typo in TypeTextUtil::getCompileTargetName(SlangCompileTarget target) (#1332) --- source/core/slang-type-text-util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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(); } } -- cgit v1.2.3