]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1905: FEAT_FLOAT no longer defined v9.0.1905
authordundargoc <gocdundar@gmail.com>
Sun, 17 Sep 2023 14:58:22 +0000 (16:58 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 17 Sep 2023 14:58:22 +0000 (16:58 +0200)
Problem:  FEAT_FLOAT no longer defined
Solution: Remove last existing FEAT_FLOAT ifdefs in
          message_test

Remove FEAT_FLOAT as that should always be true

FEAT_FLOAT has been removed in v9.0.0491 (73e28dcc6125f616cf1f2) but
unfortunately, it was forgotten to remove it from message_test.c. So
let's remove the last mentioned ifdefs which are now unused.

closes: #13106

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: dundargoc <gocdundar@gmail.com>
src/message_test.c
src/version.c

index 4d5288937d997d39e21a42b1849baa26fc78e7f2..62f7772470d0e4d8c691e20a63006a06b899cbb8 100644 (file)
@@ -225,7 +225,6 @@ test_vim_snprintf(void)
        assert(bsize == 0 || STRNCMP(buf, "one two", bsize_int) == 0);
        assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0');
 
-#ifdef FEAT_FLOAT
        n = vim_snprintf(buf, bsize, "%f", 1.234);
        assert(n == 8);
        assert(bsize == 0 || STRNCMP(buf, "1.234000", bsize_int) == 0);
@@ -255,7 +254,6 @@ test_vim_snprintf(void)
        assert(n == 9);
        assert(bsize == 0 || STRNCMP(buf, "-0.000000", bsize_int) == 0);
        assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0');
-#endif
 
        n = vim_snprintf(buf, bsize, "%s", "漢語");
        assert(n == 6);
index 76f462eda3d9f91f5e5ebbf050dbd79d4620929e..c9e2e2cc6b42f8d9b36792edc04d92c48a43c19e 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1905,
 /**/
     1904,
 /**/