diff --git a/sys/tsrb/tsrb.c b/sys/tsrb/tsrb.c index e85ea52664d6..9e1a0082e791 100644 --- a/sys/tsrb/tsrb.c +++ b/sys/tsrb/tsrb.c @@ -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;