mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.797
Problem: Compiler warning for size_t to int conversion. (Skeept) Solution: Add type casts.
This commit is contained in:
@@ -4764,8 +4764,8 @@ do_sub(eap)
|
||||
* substitute may have inserted or
|
||||
* deleted characters before the
|
||||
* cursor. */
|
||||
len_change = STRLEN(new_line)
|
||||
- STRLEN(orig_line);
|
||||
len_change = (int)STRLEN(new_line)
|
||||
- (int)STRLEN(orig_line);
|
||||
curwin->w_cursor.col += len_change;
|
||||
ml_replace(lnum, new_line, FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user