From d4e9b141dbada253455fd0a13ce27bfb81969e4d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 8 May 2008 05:45:01 +0000 Subject: [PATCH] fix compiler warning: format '%ld' expects type 'long int' --- lib/splay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/splay.c b/lib/splay.c index 04aae1f0b..c64ccdaea 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -349,9 +349,9 @@ void Curl_splayprint(struct Curl_tree * t, int d, char output) if(output) { #ifdef TEST_SPLAY - printf("%ld[%d]", t->key.tv_usec, i); + printf("%ld[%d]", (long)t->key.tv_usec, i); #else - printf("%ld.%ld[%d]", t->key.tv_sec, t->key.tv_usec, i); + printf("%ld.%ld[%d]", (long)t->key.tv_sec, (long)t->key.tv_usec, i); #endif }