]> granicus.if.org Git - libexpat/commitdiff
xmlparse.c: Polish ENTROPY_DEBUG
authorSebastian Pipping <sebastian@pipping.org>
Fri, 16 Jun 2017 18:47:55 +0000 (20:47 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 16 Jun 2017 18:48:53 +0000 (20:48 +0200)
The cast fixes a compile warning.

expat/lib/xmlparse.c

index d1f4b956622030446f0394c660c8b2e1543974e5..f8d5817dacac90aa23560bee6b264213b952d5a8 100644 (file)
@@ -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;
 }