[Scummvm-git-logs] scummvm master -> 848a601c908f2739778c3cd66198891639f614d0

wjp wjp at usecode.org
Tue Aug 1 13:13:00 CEST 2017


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:
848a601c90 FULLPIPE: Fix warning


Commit: 848a601c908f2739778c3cd66198891639f614d0
    https://github.com/scummvm/scummvm/commit/848a601c908f2739778c3cd66198891639f614d0
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2017-08-01T13:09:10+02:00

Commit Message:
FULLPIPE: Fix warning

Changed paths:
    engines/fullpipe/utils.cpp


diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index 5500d23..02b235a 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -502,7 +502,7 @@ Common::String genFileName(int superId, int sceneId, const char *ext) {
 
 // Translates cp-1251..utf-8
 byte *transCyrillic(const Common::String &str) {
-	byte *s = (byte *)str.c_str();
+	const byte *s = (const byte *)str.c_str();
 	static byte tmp[1024];
 
 #ifndef WIN32
@@ -527,7 +527,7 @@ byte *transCyrillic(const Common::String &str) {
 
 	int i = 0;
 
-	for (byte *p = s; *p; p++) {
+	for (const byte *p = s; *p; p++) {
 #ifdef WIN32
 		// translate from cp1251 to cp866
 		byte c = *p;





More information about the Scummvm-git-logs mailing list