From 0c4c1ba39ccd6d0073af2beb92f21d7e9c77ddb6 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sat, 16 Oct 2021 21:42:27 +1100 Subject: [PATCH 1/1] bug fix for hashtable resize --- htable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htable.c b/htable.c index 02f08e9..caed606 100644 --- a/htable.c +++ b/htable.c @@ -87,7 +87,7 @@ static unsigned char *htnext(htable *table,int *i) { unsigned char **e = table->data + table->size; for ( ; p < e; p++ ) { (*i) += 1; - if ( *p != 0 || *p != (unsigned char*)1 ) { + if ( *p != 0 && *p != (unsigned char*)1 ) { return *p; } } -- 2.39.2