Commit fac57b70 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix signedness issue in gnc_buf.

parent b648a179
......@@ -1091,7 +1091,7 @@ static int
gnc_buf(struct buf_state *s)
{
if(s->i < s->n)
return s->buf[s->i++];
return (s->buf[s->i++]) & 0xFF;
else
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment