From 23144219af886b03ea416e10442a761d392407a4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Sep 2022 17:30:54 +0200 Subject: [PATCH] Use "int" for variables printed out using "%d" in the code Fix -Wformat warnings in the char_strings runtime test. --- Examples/test-suite/c/char_strings_runme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/test-suite/c/char_strings_runme.c b/Examples/test-suite/c/char_strings_runme.c index d653204cd..6724a673b 100644 --- a/Examples/test-suite/c/char_strings_runme.c +++ b/Examples/test-suite/c/char_strings_runme.c @@ -8,8 +8,8 @@ int main() { char *CPLUSPLUS_MSG = "A message from the deep dark world of C++, where anything is possible."; char *OTHERLAND_MSG = "Little message from the safe world."; - long count = 10000; - long i = 0; + int count = 10000; + int i = 0; // get functions for (i=0; i