diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-05-02 20:47:13 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-05-03 20:11:13 +0200 |
commit | cee39aa3beb2da995104a2c57fe9a24be6b9f6c0 (patch) | |
tree | 98eaed76e0b4f9d7c65c92919947db91f3790878 /lib/mprintf.c | |
parent | fa12f54bba39bf5795826e04c9f0fa1a4e052157 (diff) | |
download | curl-cee39aa3beb2da995104a2c57fe9a24be6b9f6c0.tar.gz |
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]
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r-- | lib/mprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |