aboutsummaryrefslogtreecommitdiffstats
path: root/unpack.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack.c')
-rw-r--r--unpack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unpack.c b/unpack.c
index 0bd51c1..17d9c45 100644
--- a/unpack.c
+++ b/unpack.c
@@ -134,9 +134,9 @@ enum pack_status unpack(const void *buf_, size_t size, const char *fmt, ...)
if (fmt[i] == 'x') goto skip;
- for (unsigned long long j = 0; j < count; j++) {
+ for (size_t j = 0; j < count; j++) {
val.u = read_val(buf + offset + s * j, s, endianness);
- tr_debug("val.u: %" PRIuMAX, val.u);
+ tr_debug("val.u: %" PRIuMAX ", at: %zu", val.u, offset + s * j);
if (fmt[i] == 'f') {
float f = convert_ieee754b32(val.u);