tsrb: bug fix for tsrb_get_one()
This commit is contained in:
parent
fcd7f2233a
commit
ecd64faeb4
@ -32,7 +32,7 @@ static char _pop(tsrb_t *rb)
|
|||||||
int tsrb_get_one(tsrb_t *rb)
|
int tsrb_get_one(tsrb_t *rb)
|
||||||
{
|
{
|
||||||
if (!tsrb_empty(rb)) {
|
if (!tsrb_empty(rb)) {
|
||||||
return _pop(rb);
|
return (unsigned char)_pop(rb);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user