aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/unit1652.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unit1652.c')
-rw-r--r--tests/unit/unit1652.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1652.c b/tests/unit/unit1652.c
index 923c870f0..496ab3cb2 100644
--- a/tests/unit/unit1652.c
+++ b/tests/unit/unit1652.c
@@ -85,8 +85,8 @@ Curl_infof(data, "%s", input);
fail_unless(strcmp(result, input) == 0, "Simple string test");
/* Injecting a few different variables with a format */
-Curl_infof(data, "%s %u testing %.1f\n", input, 42, 43.0123324);
-fail_unless(strcmp(result, "Simple Test 42 testing 43.0\n") == 0,
+Curl_infof(data, "%s %u testing %lu\n", input, 42, 43L);
+fail_unless(strcmp(result, "Simple Test 42 testing 43\n") == 0,
"Format string");
/* Variations of empty strings */