Alexandre Julliard : ucrtbase/tests: Avoid C99 for loop.

Alexandre Julliard julliard at winehq.org
Mon Nov 4 16:40:23 CST 2019


Module: wine
Branch: master
Commit: f282b4980210b1125e2af58b91752055edc59798
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f282b4980210b1125e2af58b91752055edc59798

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Nov  2 09:22:49 2019 +0100

ucrtbase/tests: Avoid C99 for loop.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ucrtbase/tests/printf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/ucrtbase/tests/printf.c b/dlls/ucrtbase/tests/printf.c
index 2af29322bf..9c6ece9808 100644
--- a/dlls/ucrtbase/tests/printf.c
+++ b/dlls/ucrtbase/tests/printf.c
@@ -639,10 +639,11 @@ static void test_printf_legacy_three_digit_exp(void)
 static void test_printf_c99(void)
 {
     char buf[30];
+    int i;
 
     /* The msvcrt compatibility flag doesn't affect whether 'z' is interpreted
      * as size_t size for integers. */
-     for (int i = 0; i < 2; i++) {
+     for (i = 0; i < 2; i++) {
         unsigned __int64 options = (i == 0) ? 0 :
             UCRTBASE_PRINTF_LEGACY_MSVCRT_COMPATIBILITY;
 




More information about the wine-cvs mailing list