Patch 9.0.1097 (after 9.0.1096)
Problem:    Tests are failing.
Solution:   Do clean up a hashtab when at the initial size.
Files:      src/hashtab.c


*** ../vim-9.0.1096/src/hashtab.c       2022-12-25 20:46:07.527246097 +0000
--- src/hashtab.c       2022-12-25 21:28:41.970208660 +0000
***************
*** 405,414 ****
            return FAIL;        // overflow
      }
  
-     // bail out if the hashtab is already at the desired size
-     if (newsize == ht->ht_mask + 1)
-       return OK;
- 
      if (newsize == HT_INIT_SIZE)
      {
        // Use the small array inside the hashdict structure.
--- 405,410 ----
***************
*** 425,430 ****
--- 421,433 ----
            oldarray = ht->ht_array;
        CLEAR_FIELD(ht->ht_smallarray);
      }
+ 
+     else if (newsize == ht->ht_mask + 1)
+     {
+       // the hashtab is already at the desired size, bail out
+       return OK;
+     }
+ 
      else
      {
        // Allocate an array.
*** ../vim-9.0.1096/src/version.c       2022-12-25 20:46:07.527246097 +0000
--- src/version.c       2022-12-25 21:31:07.325356978 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1097,
  /**/

-- 
When I look deep into your eyes, I see JPEG artifacts.
I can tell by the pixels that we're wrong for each other.  (xkcd)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221225213325.B699E1C0AA3%40moolenaar.net.

Raspunde prin e-mail lui