| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.459 |
| 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.3.459 |
| Problem: Win32: Warnings for type conversion. |
| Solution: Add type casts. (Mike Williams) |
| Files: src/misc2.c, src/os_win32.c |
| |
| |
| |
| |
| |
| *** 2074,2080 **** |
| n = gap->ga_growsize; |
| new_len = gap->ga_itemsize * (gap->ga_len + n); |
| pp = (gap->ga_data == NULL) |
| ! ? alloc(new_len) : vim_realloc(gap->ga_data, new_len); |
| if (pp == NULL) |
| return FAIL; |
| old_len = gap->ga_itemsize * gap->ga_maxlen; |
| --- 2074,2080 ---- |
| n = gap->ga_growsize; |
| new_len = gap->ga_itemsize * (gap->ga_len + n); |
| pp = (gap->ga_data == NULL) |
| ! ? alloc((unsigned)new_len) : vim_realloc(gap->ga_data, new_len); |
| if (pp == NULL) |
| return FAIL; |
| old_len = gap->ga_itemsize * gap->ga_maxlen; |
| |
| |
| |
| *** 264,270 **** |
| static void |
| unescape_shellxquote(char_u *p, char_u *escaped) |
| { |
| ! int l = STRLEN(p); |
| int n; |
| |
| while (*p != NUL) |
| --- 264,270 ---- |
| static void |
| unescape_shellxquote(char_u *p, char_u *escaped) |
| { |
| ! int l = (int)STRLEN(p); |
| int n; |
| |
| while (*p != NUL) |
| |
| |
| |
| *** 716,717 **** |
| --- 716,719 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 459, |
| /**/ |
| |
| -- |
| "A clear conscience is usually the sign of a bad memory." |
| -- Steven Wright |
| |
| /// 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 /// |