From ab226cec27352b30f628e837c44a979e00b9c238 Mon Sep 17 00:00:00 2001 From: Shawn Chain Date: Sat, 7 Dec 2019 23:25:57 +0800 Subject: [PATCH] change variable type to unsigned char --- DMREMB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DMREMB.cpp b/DMREMB.cpp index 408547119..7b62cbae3 100644 --- a/DMREMB.cpp +++ b/DMREMB.cpp @@ -44,7 +44,7 @@ void CDMREMB::putData(const unsigned char* data) DMREMB[1U] = (data[18U] << 4) & 0xF0U; DMREMB[1U] |= (data[19U] >> 4) & 0x0FU; - char code = CQR1676::decode(DMREMB); + unsigned char code = CQR1676::decode(DMREMB); m_colorCode = (code >> 4) & 0x0FU; m_PI = (code & 0x08U) == 0x08U;