httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/tables apr_hash.c
Date Wed, 08 Nov 2000 00:54:24 GMT
fanf        00/11/07 16:54:23

  Modified:    src/lib/apr/tables apr_hash.c
  Log:
  Use the right index into the new array whan resizing the hash table.
  
  Revision  Changes    Path
  1.9       +1 -1      apache-2.0/src/lib/apr/tables/apr_hash.c
  
  Index: apr_hash.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/tables/apr_hash.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -u -r1.8 -r1.9
  --- apr_hash.c	2000/10/30 19:56:37	1.8
  +++ apr_hash.c	2000/11/08 00:54:23	1.9
  @@ -191,7 +191,7 @@
       new_max = ht->max * 2 + 1;
       new_array = alloc_array(ht, new_max);
       for (hi = apr_hash_first(ht); hi; hi = apr_hash_next(hi)) {
  -	i = hi->this->hash & ht->max;
  +	i = hi->this->hash & new_max;
   	hi->this->next = new_array[i];
   	new_array[i] = hi->this;
       }	       
  
  
  

Mime
View raw message