From cee39aa3beb2da995104a2c57fe9a24be6b9f6c0 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 2 May 2017 20:47:13 +0200 Subject: lib: fix compiler warnings Fix the following warnings when building the tests by using the correct types: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] implicit conversion changes signedness [-Wsign-conversion] --- lib/mprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mprintf.c') diff --git a/lib/mprintf.c b/lib/mprintf.c index 6d4e733f0..037132c86 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -610,7 +610,7 @@ static int dprintf_formatf( int is_neg; /* Base of a number to be written. */ - long base; + unsigned long base; /* Integral values to be written. */ mp_uintmax_t num; -- cgit v1.2.1