From 38e926cee3ec4a5066d41c0dc95231e156543b64 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 6 Mar 2003 16:08:13 +0000 Subject: fixed shadowed variables (and the new name seems to be more appropriate anyway svn-id: r6713 --- sky/rnc_deco.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sky/rnc_deco.cpp') diff --git a/sky/rnc_deco.cpp b/sky/rnc_deco.cpp index cd2503e0d4..541ba6f93f 100644 --- a/sky/rnc_deco.cpp +++ b/sky/rnc_deco.cpp @@ -249,12 +249,12 @@ int32 RncDecoder::unpackM1(void *input, void *output, uint16 key) 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); -- cgit v1.2.3