From: Ralph Ronnquist Date: Tue, 21 Jun 2022 03:20:53 +0000 (+1000) Subject: use "unsigned long" for indexing X-Git-Tag: 0.1~24 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=49912b2bb9fca7e0608e52ead72efdb14923b843;p=rrq%2Frrqmisc.git use "unsigned long" for indexing --- 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 ) {