From 72b76a9ebbb5ca23b6edfa7abd6832e4948ae642 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 2 Feb 1999 13:55:12 +0000 Subject: [PATCH] Fixed GET_LZ_STATE macro. --- misc/lzexpand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/lzexpand.c b/misc/lzexpand.c index 667b5a38030..8e5f8f5c4d2 100644 --- a/misc/lzexpand.c +++ b/misc/lzexpand.c @@ -56,7 +56,7 @@ struct lzstate { static struct lzstate *lzstates[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 */ #define GET(lzs,b) _lzget(lzs,&b)