diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-04-23 10:04:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-23 10:04:10 -0400 |
| commit | 806ab08f64c76e961ecdf40ecaf9499c5a88ac5f (patch) | |
| tree | 9dc74b213a45eee189d2228f1e50fb0b46dc3d2f /source/core | |
| parent | e45f8c1f49855cebe90b6722324ec24146ff5a3d (diff) | |
Fix typo in TypeTextUtil::getCompileTargetName(SlangCompileTarget target) (#1332)
Diffstat (limited to 'source/core')
| -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(); } } |
