From 15eb442f68d2fca9c183a9074d0839962c2280fa Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 27 Apr 2025 19:45:47 -0400 Subject: fix warnings in compressor.c --- compressor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compressor.c b/compressor.c index 0211fff..39a8931 100644 --- a/compressor.c +++ b/compressor.c @@ -250,13 +250,13 @@ parse_volume_flow(double val, const char *unit, Flow *flow) { * Returns the index of the first occurrence of key in base, or -1 if not present. */ static int index(const void *key, const void *base, size_t n, size_t size, int (*cmp)(const void *keyval, const void *datum)) { - int i; + size_t i; for (i = 0; i < n; i++) { if (cmp(key, base) == 0) { return i; } - base += size; + base = (char *) base + size; } return -1; } -- cgit v1.2.3