[Scummvm-git-logs] scummvm master -> e895548237eee9b5ee94649ce3cf89cf1b899bac

digitall 547637+digitall at users.noreply.github.com
Mon Sep 30 02:47:47 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e895548237 COMMON: Fix MSVC Compiler Warning


Commit: e895548237eee9b5ee94649ce3cf89cf1b899bac
    https://github.com/scummvm/scummvm/commit/e895548237eee9b5ee94649ce3cf89cf1b899bac
Author: D G Turner (digitall at scummvm.org)
Date: 2019-09-30T01:44:14+01:00

Commit Message:
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.

Changed paths:
    common/str.cpp


diff --git a/common/str.cpp b/common/str.cpp
index 24341dd..aecbbf2 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) {





More information about the Scummvm-git-logs mailing list