aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-01-12 09:09:07 +0000
committerPaweł Kołodziejski2003-01-12 09:09:07 +0000
commit9af8fa432ecb1cbe4c88a78489ed566448dcba7b (patch)
tree31b47f6e44068bc684845b211b9c9f8aa5ef4259 /scumm/smush
parentea9d3dd9bb3d113145a4f69939b1f8b52d34db90 (diff)
downloadscummvm-rg350-9af8fa432ecb1cbe4c88a78489ed566448dcba7b.tar.gz
scummvm-rg350-9af8fa432ecb1cbe4c88a78489ed566448dcba7b.tar.bz2
scummvm-rg350-9af8fa432ecb1cbe4c88a78489ed566448dcba7b.zip
fixed warnings
svn-id: r6419
Diffstat (limited to 'scumm/smush')
-rw-r--r--scumm/smush/codec47.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp
index 2af67e7608..99711909e1 100644
--- a/scumm/smush/codec47.cpp
+++ b/scumm/smush/codec47.cpp
@@ -476,8 +476,8 @@ static void codec47_subgfx_lev4(byte * d_dst, const int32 d_pitch) {
} else if (code == 0xFE) {
byte t = *d_src++;
tmp = t | t << 8;
- *(uint16*)(d_dst + (d_pitch * 0)) = tmp;
- *(uint16*)(d_dst + (d_pitch * 1)) = tmp;
+ *(uint16*)(d_dst + (d_pitch * 0)) = (uint16)tmp;
+ *(uint16*)(d_dst + (d_pitch * 1)) = (uint16)tmp;
} else if (code == 0xFC) {
tmp = codec47_decode2_offset2;
*(uint16*)(d_dst + (d_pitch * 0)) = *(uint16*)(d_dst + (d_pitch * 0) + tmp);
@@ -485,8 +485,8 @@ static void codec47_subgfx_lev4(byte * d_dst, const int32 d_pitch) {
} else {
byte t = codec47_decode2_param_ptr[code];
tmp = t | t << 8;
- *(uint16*)(d_dst + (d_pitch * 0)) = tmp;
- *(uint16*)(d_dst + (d_pitch * 1)) = tmp;
+ *(uint16*)(d_dst + (d_pitch * 0)) = (uint16)tmp;
+ *(uint16*)(d_dst + (d_pitch * 1)) = (uint16)tmp;
}
}