From 5f5c60cc2d427cd953719dea9c57456a5d94d4ea Mon Sep 17 00:00:00 2001 From: Alex James Date: Mon, 17 Dec 2018 20:25:12 -0800 Subject: [PATCH] StdLib/sys/termios: Define cc_t as unsigned According to the POSIX standard, cc_t, speed_t, and tcflag_t should be unsigned integer types. Define cc_t as unsigned to match POSIX and fix an implicit conversion error when building StdLib with XCODE5/CLANG38. Cc: Daryl McDaniel Cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Alex James Reviewed-by: Jaben Carsey --- StdLib/Include/sys/termios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StdLib/Include/sys/termios.h b/StdLib/Include/sys/termios.h index 75886065b7..f2d60d0025 100644 --- a/StdLib/Include/sys/termios.h +++ b/StdLib/Include/sys/termios.h @@ -152,7 +152,7 @@ typedef enum { #define NOFLSH 0x0800 /* don't flush output on signal */ #define FLUSHO 0x1000 /* output being flushed (state) */ -typedef INT8 cc_t; +typedef UINT8 cc_t; typedef UINT16 tcflag_t; typedef UINT32 speed_t;