Fixed GET_LZ_STATE macro.
This commit is contained in:
parent
1b95d7369f
commit
72b76a9ebb
|
@ -56,7 +56,7 @@ struct lzstate {
|
||||||
static struct lzstate *lzstates[MAX_LZSTATES];
|
static struct lzstate *lzstates[MAX_LZSTATES];
|
||||||
|
|
||||||
#define IS_LZ_HANDLE(h) (((h) >= 0x400) && ((h) < 0x400+MAX_LZSTATES))
|
#define IS_LZ_HANDLE(h) (((h) >= 0x400) && ((h) < 0x400+MAX_LZSTATES))
|
||||||
#define GET_LZ_STATE(h) (IS_LZ_HANDLE(h) ? lzstates[(h)] : NULL)
|
#define GET_LZ_STATE(h) (IS_LZ_HANDLE(h) ? lzstates[(h)-0x400] : NULL)
|
||||||
|
|
||||||
/* reads one compressed byte, including buffering */
|
/* reads one compressed byte, including buffering */
|
||||||
#define GET(lzs,b) _lzget(lzs,&b)
|
#define GET(lzs,b) _lzget(lzs,&b)
|
||||||
|
|
Loading…
Reference in New Issue