[Scummvm-cvs-logs] CVS: scummvm/sky rnc_deco.cpp,1.10,1.11
Max Horn
fingolfin at users.sourceforge.net
Thu Mar 6 08:09:04 CET 2003
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv20892
Modified Files:
rnc_deco.cpp
Log Message:
fixed shadowed variables (and the new name seems to be more appropriate anyway
Index: rnc_deco.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/rnc_deco.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- rnc_deco.cpp 6 Mar 2003 15:35:06 -0000 1.10
+++ rnc_deco.cpp 6 Mar 2003 16:08:13 -0000 1.11
@@ -249,12 +249,12 @@
counts = inputBits(16);
for (;;) {
- uint32 inputBits = inputValue(_rawTable);
+ uint32 inputBytes = inputValue(_rawTable);
- if (inputBits) {
- memcpy(_dstPtr, _srcPtr, inputBits); //memcpy is allowed here
- _dstPtr += inputBits;
- _srcPtr += inputBits;
+ if (inputBytes) {
+ memcpy(_dstPtr, _srcPtr, inputBytes); //memcpy is allowed here
+ _dstPtr += inputBytes;
+ _srcPtr += inputBytes;
uint16 b = READ_LE_UINT16(_srcPtr);
uint16 a = ROL(b, _bitCount);
uint16 d = ((1 << _bitCount) - 1);
More information about the Scummvm-git-logs
mailing list