From ecd64faeb439b1ae43cacce5981f10dbf71030a8 Mon Sep 17 00:00:00 2001 From: korotkoves Date: Mon, 22 Apr 2019 11:25:56 +0300 Subject: [PATCH] tsrb: bug fix for tsrb_get_one() --- sys/tsrb/tsrb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/tsrb/tsrb.c b/sys/tsrb/tsrb.c index e85ea52664..9e1a0082e7 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;