From f5ea84c61007e73b858918a1570aab18c7fe5053 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 9 Nov 2012 14:56:54 +0000 Subject: [PATCH] - use correct type --- src/mesh/mesh_block_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/mesh_block_lib.c b/src/mesh/mesh_block_lib.c index 03a30723a..889fb19e0 100644 --- a/src/mesh/mesh_block_lib.c +++ b/src/mesh/mesh_block_lib.c @@ -192,14 +192,14 @@ GNUNET_MESH_regex_block_iterate (const struct MeshRegexBlock *block, // The total size should be exactly the size of (regex + all edges) blocks // If size == -1, block is from cache and therefore previously checked and // assumed correct. - if (offset == size || (unsigned int) -1 == size) + if (offset == size || (size_t) -1 == size) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "* Block processed, END OK\n"); return GNUNET_OK; } GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "* Size %u, read %u END KO\n", size, offset); + "* Size %u (%d), read %u END KO\n", size, size, offset); GNUNET_break_op (0); return GNUNET_SYSERR; } -- 2.25.1