From 7ff65c16f272ea8f0d98bb6458740f626c8924cb Mon Sep 17 00:00:00 2001 From: Comix Date: Thu, 6 Mar 2025 12:07:50 +0800 Subject: [PATCH] fix: promoting uint8_t/int8_t to make it casting result printable (#1132) The underlying type of uint8_t/int8_t is unsigned char and signed char, but IOStreams was specified to treat them just like char. so promoting the casting value to get the expected value. Signed-off-by: ComixHe --- include/CLI/Option.hpp | 12 ------------ include/CLI/StringTools.hpp | 3 ++- tests/HelpersTest.cpp | 3 +++ 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 0db6b317..8f2d6b65 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -776,18 +776,6 @@ class Option : public OptionBase