From 9ef7b98f15406f1203b57789d06c711205a38d75 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 4 Feb 2009 11:17:02 +0100 Subject: [PATCH] [7.2.094] Compiler warning for signed/unsigned compare. Problem: Compiler warning for signed/unsigned compare. Solution: Add type cast. Also fix a few typos. Patch 7.2.094 --- src/edit.c | 9 +++++---- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/edit.c b/src/edit.c index 7721259a..24f14963 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1958,6 +1958,7 @@ backspace_until_column(col) * Only matters when there are composing characters. * Return TRUE when something was deleted. */ +/*ARGSUSED*/ static int del_char_after_col(limit_col) int limit_col; @@ -1971,7 +1972,7 @@ del_char_after_col(limit_col) * skip forward again when going too far back because of a * composing character. */ mb_adjust_cursor(); - while (curwin->w_cursor.col < limit_col) + while (curwin->w_cursor.col < (colnr_T)limit_col) { int l = utf_ptr2len(ml_get_cursor()); @@ -4240,7 +4241,7 @@ ins_compl_get_exp(ini) } /* check if compl_curr_match has changed, (e.g. other type of - * expansion added somenthing) */ + * expansion added something) */ if (type != 0 && compl_curr_match != old_match) found_new_match = OK; @@ -4741,7 +4742,7 @@ ins_complete(c) } compl_length = curwin->w_cursor.col - (int)compl_col; /* IObuff is used to add a "word from the next line" would we - * have enough space? just being paranoic */ + * have enough space? just being paranoid */ #define MIN_SPACE 75 if (compl_length > (IOSIZE - MIN_SPACE)) { @@ -8206,7 +8207,7 @@ ins_ctrl_o() /* * If the cursor is on an indent, ^T/^D insert/delete one * shiftwidth. Otherwise ^T/^D behave like a "<<" or ">>". - * Always round the indent to 'shiftwith', this is compatible + * Always round the indent to 'shiftwidth', this is compatible * with vi. But vi only supports ^T and ^D after an * autoindent, we support it everywhere. */ diff --git a/src/version.c b/src/version.c index 06abbfc5..ac0a9111 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 94, +/**/ 93, /**/ 92, -- 2.11.4.GIT