From c53182cabd976b952060d1749ecde00148fbd4e6 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 18 Sep 2016 01:59:21 +0800 Subject: Fix printing of hash table. --- source/fitz/hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/fitz/hash.c b/source/fitz/hash.c index 6c4d9a5e..bc1d2376 100644 --- a/source/fitz/hash.c +++ b/source/fitz/hash.c @@ -340,12 +340,12 @@ fz_print_hash_details(fz_context *ctx, fz_output *out, fz_hash_table *table, voi for (i = 0; i < table->size; i++) { if (!table->ents[i].val) - fz_printf(ctx, out, "table % 4d: empty\n", i); + fz_printf(ctx, out, "table %04d: empty\n", i); else { - fz_printf(ctx, out, "table % 4d: key=", i); + fz_printf(ctx, out, "table %04d: key=", i); for (k = 0; k < MAX_KEY_LEN; k++) - fz_printf(ctx, out, "%02x", ((char*)table->ents[i].key)[k]); + fz_printf(ctx, out, "%02x", ((unsigned char*)table->ents[i].key)[k]); if (details) details(ctx, out, table->ents[i].val); else -- cgit v1.2.3