summaryrefslogtreecommitdiffstats
path: root/source/core/slang-nvrtc-compiler.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-03-02 19:14:18 -0500
committerGitHub <noreply@github.com>2020-03-02 19:14:18 -0500
commitcbba1f2ba451f31e910d59fb9efbadc5e370c095 (patch)
treecf34d86713e2f915a42ce4ece11b7da82b9d4454 /source/core/slang-nvrtc-compiler.cpp
parentdbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff)
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'source/core/slang-nvrtc-compiler.cpp')
-rw-r--r--source/core/slang-nvrtc-compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-nvrtc-compiler.cpp b/source/core/slang-nvrtc-compiler.cpp
index 27d269125..2f9944786 100644
--- a/source/core/slang-nvrtc-compiler.cpp
+++ b/source/core/slang-nvrtc-compiler.cpp
@@ -181,7 +181,7 @@ static bool _isDriveLetter(char c)
static bool _hasDriveLetter(const UnownedStringSlice& line)
{
- return line.size() > 2 && line[1] == ':' && _isDriveLetter(line[0]);
+ return line.getLength() > 2 && line[1] == ':' && _isDriveLetter(line[0]);
}
static SlangResult _parseNVRTCLine(const UnownedStringSlice& line, DownstreamDiagnostic& outDiagnostic)