[Scummvm-cvs-logs] CVS: scummvm/scumm/smush codec47.cpp,1.37,1.38
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Jan 12 01:10:01 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1:/tmp/cvs-serv29697
Modified Files:
codec47.cpp
Log Message:
fixed warnings
Index: codec47.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/codec47.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- codec47.cpp 12 Jan 2003 03:35:16 -0000 1.37
+++ codec47.cpp 12 Jan 2003 09:09:07 -0000 1.38
@@ -476,8 +476,8 @@
} 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 @@
} 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;
}
}
More information about the Scummvm-git-logs
mailing list