[Scummvm-git-logs] scummvm master -> 2f4f13091899ee450629a6ac9b430d2913d86758

wjp wjp at usecode.org
Tue Feb 7 21:45:37 CET 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:
2f4f130918 SCI: Fix warnings


Commit: 2f4f13091899ee450629a6ac9b430d2913d86758
    https://github.com/scummvm/scummvm/commit/2f4f13091899ee450629a6ac9b430d2913d86758
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2017-02-07T21:45:17+01:00

Commit Message:
SCI: Fix warnings

Changed paths:
    engines/sci/parser/vocabulary.cpp


diff --git a/engines/sci/parser/vocabulary.cpp b/engines/sci/parser/vocabulary.cpp
index 6b90cd8..ea8722a 100644
--- a/engines/sci/parser/vocabulary.cpp
+++ b/engines/sci/parser/vocabulary.cpp
@@ -299,7 +299,7 @@ bool Vocabulary::loadAltInputs() {
 		uint32 maxSize = data_end - data;
 		uint32 l = Common::strnlen(data, maxSize);
 		if (l == maxSize) {
-			error("Alt input from %d appears truncated at %ld", resource->getNumber(), (byte *)data - resource->data);
+			error("Alt input from %d appears truncated at %ld", resource->getNumber(), (const byte *)data - resource->data);
 		}
 		t._inputLength = l;
 		data += l + 1;
@@ -308,7 +308,7 @@ bool Vocabulary::loadAltInputs() {
 		maxSize = data_end - data;
 		l = Common::strnlen(data, maxSize);
 		if (l == maxSize) {
-			error("Alt input replacement from %d appears truncated at %ld", resource->getNumber(), (byte *)data - resource->data);
+			error("Alt input replacement from %d appears truncated at %ld", resource->getNumber(), (const byte *)data - resource->data);
 		}
 		data += l + 1;
 





More information about the Scummvm-git-logs mailing list