use "unsigned long" for indexing
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Tue, 21 Jun 2022 03:20:53 +0000 (13:20 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Tue, 21 Jun 2022 03:20:53 +0000 (13:20 +1000)
pvector/pvector.c

index d7445561a9eb5aa5dce8ec900add566c09661b68..3179376bc553a22a685eb202fb300bfcb3f52c83 100644 (file)
@@ -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 ) {