]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-007 v7.0.007
authorBram Moolenaar <Bram@vim.org>
Sat, 13 May 2006 11:09:22 +0000 (11:09 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 May 2006 11:09:22 +0000 (11:09 +0000)
src/message.c
src/version.c

index aebf01bb81134400fb072dafdbc81a16e246c4a5..8f0a9c6320584b48cfc286b5c7d66ab6d6077f8f 100644 (file)
@@ -4175,15 +4175,16 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
                        str_arg_l = 0;
                    else
                    {
-                       /* memchr on HP does not like n > 2^31  !!! */
-                       char *q = memchr(str_arg, '\0',
+                       /* Don't put the #if inside memchr(), it can be a
+                        * macro. */
 #if SIZEOF_INT <= 2
-                               precision
+                       char *q = memchr(str_arg, '\0', precision);
 #else
-                               precision <= (size_t)0x7fffffffL ? precision
-                                                      : (size_t)0x7fffffffL
+                       /* memchr on HP does not like n > 2^31  !!! */
+                       char *q = memchr(str_arg, '\0',
+                                 precision <= (size_t)0x7fffffffL ? precision
+                                                      : (size_t)0x7fffffffL);
 #endif
-                                                      );
                        str_arg_l = (q == NULL) ? precision : q - str_arg;
                    }
                    break;
index e0503ca2f53bc0c3bdcc31efa01c50186a38dafc..17b8181c7a6076fca2c1fc28e101db2fc2bd3f2c 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    7,
 /**/
     6,
 /**/