]> granicus.if.org Git - vim/commitdiff
patch 8.0.0063 v8.0.0063
authorBram Moolenaar <Bram@vim.org>
Sat, 5 Nov 2016 13:58:34 +0000 (14:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Nov 2016 13:58:34 +0000 (14:58 +0100)
Problem:    Compiler warning for comparing with unsigned. (Zoltan Arpadffy)
Solution:   Change <= to ==.

src/undo.c
src/version.c

index c9a80dc07f40189ea2d9c48ed89f6f2d14da2c1a..cc74edd943b48fd1e704577665012f1094216210 100644 (file)
@@ -1076,7 +1076,7 @@ undo_read(bufinfo_T *bi, char_u *buffer, size_t size)
            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. */
index d8cfa19222c53e6338695a31995e9584d1b4ad01..492a5277e9d290356c9c575af746ecd03fb9ea02 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    63,
 /**/
     62,
 /**/