From: Adam Dickmeiss Date: Tue, 13 Jan 2009 14:54:56 +0000 (+0100) Subject: Cast integer to long for print X-Git-Tag: v3.0.42~16 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=210462cd20476ec54208ccf3a65f15a32fad5bcc;p=yaz-moved-to-github.git Cast integer to long for print --- diff --git a/client/client.c b/client/client.c index 8016a15..b6d8281 100644 --- a/client/client.c +++ b/client/client.c @@ -205,7 +205,7 @@ static void do_hex_dump(const char* buf, size_t len) int x; for (i = 0; i < len ; i = i+16 ) { - printf(" %4.4d ",i); + printf(" %4.4ld ", (long) i); for(x=0 ; i+x