aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/sprite.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-17 14:18:27 +0300
committerEugene Sandulenko2013-10-17 14:18:27 +0300
commit734abb5a53f498dcac30d4a9e6c5b37a57e6eb61 (patch)
tree0621b0561a5184f5b3410f8d6d1f0778d2c3341b /engines/draci/sprite.cpp
parent2a65976092680957c7ee7b3aa39d84400b445c62 (diff)
downloadscummvm-rg350-734abb5a53f498dcac30d4a9e6c5b37a57e6eb61.tar.gz
scummvm-rg350-734abb5a53f498dcac30d4a9e6c5b37a57e6eb61.tar.bz2
scummvm-rg350-734abb5a53f498dcac30d4a9e6c5b37a57e6eb61.zip
DRACI: Fix potential sign extention. CID 1003514
Diffstat (limited to 'engines/draci/sprite.cpp')
-rw-r--r--engines/draci/sprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/sprite.cpp b/engines/draci/sprite.cpp
index 965cdabf3e..9a78904d25 100644
--- a/engines/draci/sprite.cpp
+++ b/engines/draci/sprite.cpp
@@ -38,9 +38,9 @@ const Displacement kNoDisplacement = { 0, 0, 1.0, 1.0 };
* height height of the image in the buffer
*/
static void transformToRows(byte *img, uint16 width, uint16 height) {
- byte *buf = new byte[width * height];
+ byte *buf = new byte[(uint)(width * height)];
byte *tmp = buf;
- memcpy(buf, img, width * height);
+ memcpy(buf, img, (uint)(width * height));
for (uint16 i = 0; i < width; ++i) {
for (uint16 j = 0; j < height; ++j) {