mirror of https://github.com/ericonr/sndio.git
all counters are signed ints
This commit is contained in:
parent
4e01a1289d
commit
fab9d738ac
|
@ -72,7 +72,7 @@ abuf_done(struct abuf *buf)
|
||||||
unsigned char *
|
unsigned char *
|
||||||
abuf_rgetblk(struct abuf *buf, int *rsize)
|
abuf_rgetblk(struct abuf *buf, int *rsize)
|
||||||
{
|
{
|
||||||
unsigned int count;
|
int count;
|
||||||
|
|
||||||
count = buf->len - buf->start;
|
count = buf->len - buf->start;
|
||||||
if (count > buf->used)
|
if (count > buf->used)
|
||||||
|
|
Loading…
Reference in New Issue