mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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)
|
||||
{
|
||||
if (!tsrb_empty(rb)) {
|
||||
return _pop(rb);
|
||||
return (unsigned char)_pop(rb);
|
||||
}
|
||||
else {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user