From 4a266a1099132f41cd98c8809d0eea426576f4b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BA=BDn?= Date: Tue, 23 Oct 2012 13:49:15 +0200 Subject: [PATCH] Silence a printf warning for %lu on 32bits archs. --- bp-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bp-utils.c b/bp-utils.c index 0fc7a42..48b3fee 100644 --- a/bp-utils.c +++ b/bp-utils.c @@ -28,7 +28,7 @@ void * bp_malloc(size_t n) { void * res = malloc(n); if (!res) { - fprintf(stderr, __FILE__ ": failure to allocate %lu bytes\n", n); + fprintf(stderr, __FILE__ ": failure to allocate %lu bytes\n", (long unsigned int) n); exit(1); }; allocated += n; -- 2.17.1