0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.094

Problem:    Using abs() requires type cast to int.
Solution:   Use labs() so that the value remains long. (Hong Xu)
This commit is contained in:
Bram Moolenaar
2010-12-30 14:57:08 +01:00
parent b0d3f878a4
commit 7eb4652e74
2 changed files with 4 additions and 3 deletions

View File

@@ -2317,7 +2317,7 @@ fold_line(wp, fold_count, foldinfo, lnum, row)
num = (long)lnum;
else
/* 'relativenumber', don't use negative numbers */
num = (long)abs((int)get_cursor_rel_lnum(wp, lnum));
num = labs((long)get_cursor_rel_lnum(wp, lnum));
sprintf((char *)buf, "%*ld ", w, num);
#ifdef FEAT_RIGHTLEFT
@@ -3475,8 +3475,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
num = (long)lnum;
else
/* 'relativenumber', don't use negative numbers */
num = (long)abs((int)get_cursor_rel_lnum(wp,
lnum));
num = labs((long)get_cursor_rel_lnum(wp, lnum));
sprintf((char *)extra, "%*ld ",
number_width(wp), num);

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
94,
/**/
93,
/**/