From 2f4f13091899ee450629a6ac9b430d2913d86758 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 7 Feb 2017 21:45:17 +0100 Subject: SCI: Fix warnings --- engines/sci/parser/vocabulary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/sci/parser/vocabulary.cpp b/engines/sci/parser/vocabulary.cpp index 6b90cd85e2..ea8722aefd 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; -- cgit v1.2.3