From 49912b2bb9fca7e0608e52ead72efdb14923b843 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Tue, 21 Jun 2022 13:20:53 +1000 Subject: [PATCH] use "unsigned long" for indexing --- pvector/pvector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvector/pvector.c b/pvector/pvector.c index d744556..3179376 100644 --- a/pvector/pvector.c +++ b/pvector/pvector.c @@ -16,7 +16,7 @@ * pointer to the used slot, if any, and 0 otherwise. */ static void **pvector_level_next_used( - pvector_page *page,unsigned long *index,int level,int end) { + pvector_page *page,unsigned long *index,int level,unsigned long end) { void **p = (void**)&(*page)[ ((pvector_index*)index)->level[ level ] ]; for( ; *index < end; p++ ) { if ( *p ) { -- 2.39.2