summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/core/slang-string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h
index ba68e405e..3c1b48e8c 100644
--- a/source/core/slang-string.h
+++ b/source/core/slang-string.h
@@ -506,7 +506,7 @@ namespace Slang
String result;
for (auto c : *this)
{
- int d = (c >= 'a' && c <= 'z') ? (c - ('a' - 'A')) : c;
+ char d = (c >= 'a' && c <= 'z') ? (c - ('a' - 'A')) : c;
result.append(d);
}
return result;
@@ -517,7 +517,7 @@ namespace Slang
String result;
for (auto c : *this)
{
- int d = (c >= 'A' && c <= 'Z') ? (c - ('A' - 'a')) : c;
+ char d = (c >= 'A' && c <= 'Z') ? (c - ('A' - 'a')) : c;
result.append(d);
}
return result;