ref: 71b49c378d76954cb8b6c0f881f1283d2475aed3
parent: 261e90c554eb95fa25079f08d4f1ae3691efdc87
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Mar 4 15:43:48 EST 2024
wav: stick to ints
--- a/wav.c
+++ b/wav.c
@@ -20,9 +20,7 @@
tagwav(Tagctx *ctx)
{
uint8_t *d;
- int i, n, info;
- uint32_t csz, x;
- uint64_t sz;
+ int i, n, info, csz, x, sz;
d = (uint8_t*)ctx->buf;
@@ -68,10 +66,10 @@
}else if(memcmp(d, "LIST", 4) == 0){
sz = csz - 4;
continue;
- }else if(info && csz < (uint32_t)ctx->bufsz){
+ }else if(info && csz < ctx->bufsz){
for(n = 0; n < nelem(t); n++){
if(memcmp(d, t[n].s, 4) == 0 || t[n].type == Tunknown){
- if(ctx->read(ctx, d+5, csz) != (int)csz)
+ if(ctx->read(ctx, d+5, csz) != csz)
return -1;
d[4] = 0;
d[5+csz] = 0;