aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-08-14 09:10:14 +0000
committerPaweł Kołodziejski2004-08-14 09:10:14 +0000
commitd62ff5dca7b9bb7009d4edc91c2e3f31863ecb7d (patch)
treecf6e3788676edd2e59d926442f0f0f18166b0d8e
parent80bcaf8d0943ffcaa8f669fd773374877f7e1428 (diff)
downloadscummvm-rg350-d62ff5dca7b9bb7009d4edc91c2e3f31863ecb7d.tar.gz
scummvm-rg350-d62ff5dca7b9bb7009d4edc91c2e3f31863ecb7d.tar.bz2
scummvm-rg350-d62ff5dca7b9bb7009d4edc91c2e3f31863ecb7d.zip
fixed warnings
svn-id: r14603
-rw-r--r--common/debugger.cpp2
-rw-r--r--queen/talk.cpp2
-rw-r--r--saga/expr.cpp2
-rw-r--r--scumm/smush/smush_font.cpp2
-rw-r--r--sky/logic.cpp3
5 files changed, 6 insertions, 5 deletions
diff --git a/common/debugger.cpp b/common/debugger.cpp
index 7f771ae2f6..47fb6e2a3d 100644
--- a/common/debugger.cpp
+++ b/common/debugger.cpp
@@ -196,7 +196,7 @@ bool Debugger<T>::RunCommand(const char *inputOrig) {
break;
// Integer Array
case DVAR_INTARRAY: {
- char *chr = strchr(param[0], '[');
+ char *chr = (char *)strchr(param[0], '[');
if (!chr) {
DebugPrintf("You must access this array as %s[element]\n", param[0]);
} else {
diff --git a/queen/talk.cpp b/queen/talk.cpp
index 4942ee66c0..1c4a2296ab 100644
--- a/queen/talk.cpp
+++ b/queen/talk.cpp
@@ -1169,7 +1169,7 @@ int Talk::splitOptionHebrew(const char *str, char optionText[5][MAX_STRING_SIZE]
uint16 width = 0;
uint16 optionLines = 0;
uint16 maxTextLen = MAX_TEXT_WIDTH;
- char *p = strchr(str, '\0');
+ char *p = (char *)strchr(str, '\0');
while (p != str - 1) {
while (*p != ' ' && p != str - 1) {
--p;
diff --git a/saga/expr.cpp b/saga/expr.cpp
index 3ecfc38e16..9de0681906 100644
--- a/saga/expr.cpp
+++ b/saga/expr.cpp
@@ -273,7 +273,7 @@ char *EXPR_ReadString(const char **string_p, int *len, int term_char) {
int in_char;
if (term_char > 0) {
- term_p = strchr(*string_p, term_char);
+ term_p = (char *)strchr(*string_p, term_char);
if (term_p == NULL) {
return NULL;
}
diff --git a/scumm/smush/smush_font.cpp b/scumm/smush/smush_font.cpp
index 533129904e..169c131508 100644
--- a/scumm/smush/smush_font.cpp
+++ b/scumm/smush/smush_font.cpp
@@ -162,7 +162,7 @@ void SmushFont::drawString(const char *str, byte *buffer, int dst_width, int dst
while (str) {
char line[256];
- char *pos = strchr(str, '\n');
+ char *pos = (char *)strchr(str, '\n');
if (pos) {
memcpy(line, str, pos - str - 1);
line[pos - str - 1] = 0;
diff --git a/sky/logic.cpp b/sky/logic.cpp
index d3c6b73527..d4bc08482b 100644
--- a/sky/logic.cpp
+++ b/sky/logic.cpp
@@ -779,7 +779,8 @@ void Logic::stopAndWait() {
uint16 *offset = SkyCompact::getSub(_compact, _compact->mode + 2);
*scriptNo = (uint16)(_compact->extCompact->stopScript & 0xffff);
- *offset = (uint16)(_compact->extCompact->stopScript >> 16);
+ *offset = 0; //stopScript is uint16, after right shift is zero
+// *offset = (uint16)(_compact->extCompact->stopScript >> 16);
_compact->logic = L_SCRIPT;
logicScript();