diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-06 13:15:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-06 13:15:26 -0700 |
| commit | af8c0eae90c76d2c8f745badf6f743cefe15f777 (patch) | |
| tree | 57632ee0f4b4944b311c0e50173fbeab0fe7d109 /source/core/slang-io.cpp | |
| parent | 21a14cb4e0d578bc4f8a460016269a1199cac0da (diff) | |
| parent | 9795ed654e7b8daaff0bef1ccae1507ff659d3bd (diff) | |
Merge pull request #54 from tfoleyNV/falcor-fixes
Fix issues found during testing of v0.4.0 with Falcor
Diffstat (limited to 'source/core/slang-io.cpp')
| -rw-r--r-- | source/core/slang-io.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp index 684fed0a1..24d5aa412 100644 --- a/source/core/slang-io.cpp +++ b/source/core/slang-io.cpp @@ -23,7 +23,7 @@ namespace Slang String Path::TruncateExt(const String & path) { - int dotPos = path.LastIndexOf('.'); + UInt dotPos = path.LastIndexOf('.'); if (dotPos != -1) return path.SubString(0, dotPos); else @@ -32,7 +32,7 @@ namespace Slang String Path::ReplaceExt(const String & path, const char * newExt) { StringBuilder sb(path.Length()+10); - int dotPos = path.LastIndexOf('.'); + UInt dotPos = path.LastIndexOf('.'); if (dotPos == -1) dotPos = path.Length(); sb.Append(path.Buffer(), dotPos); @@ -72,7 +72,7 @@ namespace Slang String Path::GetFileNameWithoutEXT(const String & path) { String fileName = GetFileName(path); - int dotPos = fileName.LastIndexOf('.'); + UInt dotPos = fileName.LastIndexOf('.'); if (dotPos == -1) return fileName; return fileName.SubString(0, dotPos); |
