diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-27 19:45:47 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-27 19:45:47 -0400 |
| commit | 15eb442f68d2fca9c183a9074d0839962c2280fa (patch) | |
| tree | b4ed3ec428d4714e305ffc4dca88c016210e4218 | |
| parent | 693e2aed585a688d80870a9b93078e32abb7a36b (diff) | |
| download | volute-15eb442f68d2fca9c183a9074d0839962c2280fa.zip | |
fix warnings in compressor.c
| -rw-r--r-- | compressor.c | 4 |
1 files 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; } |