| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.735 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.735 |
| Problem: Wrong argument for sizeof(). |
| Solution: Use a pointer argument. (Chris Hall) |
| Files: src/eval.c |
| |
| |
| |
| |
| |
| *** 23164,23170 **** |
| if (todo == 0) |
| return; /* nothing to dump */ |
| |
| ! sorttab = (ufunc_T **)alloc((unsigned)(sizeof(ufunc_T) * todo)); |
| |
| for (hi = func_hashtab.ht_array; todo > 0; ++hi) |
| { |
| --- 23164,23170 ---- |
| if (todo == 0) |
| return; /* nothing to dump */ |
| |
| ! sorttab = (ufunc_T **)alloc((unsigned)(sizeof(ufunc_T *) * todo)); |
| |
| for (hi = func_hashtab.ht_array; todo > 0; ++hi) |
| { |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 735, |
| /**/ |
| |
| -- |
| From "know your smileys": |
| +<(:-) The Pope |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |