From 760077feebc399998c66ec0e7c023865c2f21151 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 16 Jun 2017 20:47:55 +0200 Subject: [PATCH] xmlparse.c: Polish ENTROPY_DEBUG The cast fixes a compile warning. --- expat/lib/xmlparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index d1f4b956..f8d5817d 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -806,8 +806,8 @@ ENTROPY_DEBUG(const char * label, unsigned long entropy) { if (EXPAT_ENTROPY_DEBUG && ! strcmp(EXPAT_ENTROPY_DEBUG, "1")) { fprintf(stderr, "Entropy: %s --> 0x%0*lx (%lu bytes)\n", label, - (int)sizeof(unsigned long) * 2, entropy, - sizeof(unsigned long)); + (int)sizeof(entropy) * 2, entropy, + (unsigned long)sizeof(entropy)); } return entropy; }