changeset 10336:9d282593ba24 v8.0.0063

commit https://github.com/vim/vim/commit/55952d4dd490bb2f63bda5d7f6d8fb69f58c333c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 5 14:58:34 2016 +0100 patch 8.0.0063 Problem: Compiler warning for comparing with unsigned. (Zoltan Arpadffy) Solution: Change <= to ==.
author Christian Brabandt <cb@256bit.org>
date Sat, 05 Nov 2016 15:00:04 +0100
parents 2d3dbf2a394e
children 9d1f5db4582b
files src/undo.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/undo.c
+++ b/src/undo.c
@@ -1076,7 +1076,7 @@ undo_read(bufinfo_T *bi, char_u *buffer,
 	    if (bi->bi_used >= bi->bi_avail)
 	    {
 		n = fread(bi->bi_buffer, 1, (size_t)CRYPT_BUF_SIZE, bi->bi_fp);
-		if (n <= 0)
+		if (n == 0)
 		{
 		    /* Error may be checked for only later.  Fill with zeros,
 		     * so that the reader won't use garbage. */
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    63,
+/**/
     62,
 /**/
     61,