diff options
Diffstat (limited to 'main/lzo/src/lzo2a_d.ch')
-rw-r--r-- | main/lzo/src/lzo2a_d.ch | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/main/lzo/src/lzo2a_d.ch b/main/lzo/src/lzo2a_d.ch index 48e51caa..1f4acf12 100644 --- a/main/lzo/src/lzo2a_d.ch +++ b/main/lzo/src/lzo2a_d.ch @@ -2,22 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -56,9 +41,9 @@ DO_DECOMPRESS ( const lzo_bytep in , lzo_uint in_len, lzo_bytep out, lzo_uintp out_len, lzo_voidp wrkmem ) { - register lzo_bytep op; - register const lzo_bytep ip; - register const lzo_bytep m_pos; + lzo_bytep op; + const lzo_bytep ip; + const lzo_bytep m_pos; lzo_uint t; const lzo_bytep const ip_end = in + in_len; @@ -66,7 +51,7 @@ DO_DECOMPRESS ( const lzo_bytep in , lzo_uint in_len, lzo_bytep const op_end = out + *out_len; #endif - lzo_uint32 b = 0; /* bit buffer */ + lzo_uint32_t b = 0; /* bit buffer */ unsigned k = 0; /* bits in bit buffer */ LZO_UNUSED(wrkmem); @@ -74,7 +59,7 @@ DO_DECOMPRESS ( const lzo_bytep in , lzo_uint in_len, op = out; ip = in; - while (TEST_IP && TEST_OP) + while (TEST_IP_AND_TEST_OP) { NEEDBITS(1); if (MASKBITS(1) == 0) @@ -131,6 +116,7 @@ DO_DECOMPRESS ( const lzo_bytep in , lzo_uint in_len, { t += 255; ip++; + TEST_OV(t); NEED_IP(1); } t += *ip++; |