diff options
Diffstat (limited to 'engines/gob/draw_v1.cpp')
-rw-r--r-- | engines/gob/draw_v1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/draw_v1.cpp b/engines/gob/draw_v1.cpp index 8cb88b522c..fb15fdbc19 100644 --- a/engines/gob/draw_v1.cpp +++ b/engines/gob/draw_v1.cpp @@ -251,7 +251,7 @@ void Draw_v1::printTotText(int16 id) { cmd = ptrEnd[17] & 0x7F; if (cmd == 0) { val = READ_LE_UINT16(ptrEnd + 18) * 4; - sprintf(buf, "%d", VAR_OFFSET(val)); + sprintf(buf, "%d", (int32)VAR_OFFSET(val)); } else if (cmd == 1) { val = READ_LE_UINT16(ptrEnd + 18) * 4; @@ -259,7 +259,7 @@ void Draw_v1::printTotText(int16 id) { } else { val = READ_LE_UINT16(ptrEnd + 18) * 4; - sprintf(buf, "%d", VAR_OFFSET(val)); + sprintf(buf, "%d", (int32)VAR_OFFSET(val)); if (buf[0] == '-') { while (strlen(buf) - 1 < (uint32)ptrEnd[17]) { _vm->_util->insertStr("0", buf, 1); |