diff options
author | Paweł Kołodziejski | 2003-01-12 09:09:07 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-01-12 09:09:07 +0000 |
commit | 9af8fa432ecb1cbe4c88a78489ed566448dcba7b (patch) | |
tree | 31b47f6e44068bc684845b211b9c9f8aa5ef4259 | |
parent | ea9d3dd9bb3d113145a4f69939b1f8b52d34db90 (diff) | |
download | scummvm-rg350-9af8fa432ecb1cbe4c88a78489ed566448dcba7b.tar.gz scummvm-rg350-9af8fa432ecb1cbe4c88a78489ed566448dcba7b.tar.bz2 scummvm-rg350-9af8fa432ecb1cbe4c88a78489ed566448dcba7b.zip |
fixed warnings
svn-id: r6419
-rw-r--r-- | scumm/smush/codec47.cpp | 8 |
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; } } |