From 21733eb02e8458181a5f2d06acb4a5cfc6e71b3f Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 14 May 2017 14:49:27 +0200 Subject: [PATCH] tests/print_number: Use proper double literals --- tests/print_number.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/print_number.c b/tests/print_number.c index 299cefc..bda455c 100644 --- a/tests/print_number.c +++ b/tests/print_number.c @@ -49,16 +49,16 @@ static void print_number_should_print_zero(void) static void print_number_should_print_negative_integers(void) { - assert_print_number("-1", -1); - assert_print_number("-32768", -32768); + assert_print_number("-1", -1.0); + assert_print_number("-32768", -32768.0); assert_print_number("-2147483648", -2147483648.0); } static void print_number_should_print_positive_integers(void) { - assert_print_number("1", 1); - assert_print_number("32767", 32767); - assert_print_number("2147483647", 2147483647); + assert_print_number("1", 1.0); + assert_print_number("32767", 32767.0); + assert_print_number("2147483647", 2147483647.0); } static void print_number_should_print_positive_reals(void)