Mercurial > vim
changeset 3592:b8924014a039 v7.3.556
updated for version 7.3.556
Problem: Compiler warnings on 64 bit Windows.
Solution: Add type casts. (Mike Williams)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 14 Jun 2012 20:59:25 +0200 |
parents | 869a63c3f311 |
children | ca39f14c1ec3 |
files | src/misc1.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -445,8 +445,7 @@ get_number_indent(lnum) if (vim_regexec(®match, ml_get(lnum) + lead_len, (colnr_T)0)) { pos.lnum = lnum; - pos.col = *regmatch.endp - (ml_get(lnum) + lead_len); - pos.col += lead_len; + pos.col = (colnr_T)(*regmatch.endp - ml_get(lnum)); #ifdef FEAT_VIRTUALEDIT pos.coladd = 0; #endif @@ -1354,7 +1353,8 @@ open_line(dir, flags, second_line_indent if (flags & OPENLINE_COM_LIST && second_line_indent > 0) { int i; - int padding = second_line_indent - (newindent + STRLEN(leader)); + int padding = second_line_indent + - (newindent + (int)STRLEN(leader)); /* Here whitespace is inserted after the comment char. * Below, set_indent(newindent, SIN_INSERT) will insert the