aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2019-09-30 01:44:14 +0100
committerD G Turner2019-09-30 01:44:14 +0100
commite895548237eee9b5ee94649ce3cf89cf1b899bac (patch)
tree67c5e19ab54e7a0d5c796640b0666e65f898be6b
parent72d690aa2c0442a7e7e5a946bc31eed644be230f (diff)
downloadscummvm-rg350-e895548237eee9b5ee94649ce3cf89cf1b899bac.tar.gz
scummvm-rg350-e895548237eee9b5ee94649ce3cf89cf1b899bac.tar.bz2
scummvm-rg350-e895548237eee9b5ee94649ce3cf89cf1b899bac.zip
COMMON: Fix MSVC Compiler Warning
The enum is implicitly int32 by default so causes signed vs. unsigned assignment warnings. Changing this to a const uint32 avoids the issue.
-rw-r--r--common/str.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp
index 24341ddc44..aecbbf2574 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -518,7 +518,7 @@ void String::wordWrap(const uint32 maxLength) {
makeUnique();
- enum { kNoSpace = 0xFFFFFFFF };
+ const uint32 kNoSpace = 0xFFFFFFFF;
uint32 i = 0;
while (i < _size) {