To: vim_dev@googlegroups.com Subject: Patch 9.0.1097 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///