1
0
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:
korotkoves 2019-04-22 11:25:56 +03:00
parent fcd7f2233a
commit ecd64faeb4

View File

@ -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;