Merge pull request #11624 from acsl-mipt/pr_sys_tsrb

sys/tsrb: bug fix for tsrb_get_one()
This commit is contained in:
Martine Lenders 2019-06-05 12:24:24 +02:00 committed by GitHub
commit 8c5433d5db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;