From cbba1f2ba451f31e910d59fb9efbadc5e370c095 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 2 Mar 2020 19:14:18 -0500 Subject: Renamed UnownedStringSlice::size to getLength to make match String. (#1254) --- source/core/slang-nvrtc-compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/slang-nvrtc-compiler.cpp') 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) -- cgit v1.2.3