Skip to content

Commit 0eb4326

Browse files
committed
Fix uint8_t treated as char
1 parent 2eb9c1b commit 0eb4326

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libcapt/BasicCaptPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Capt {
1414
inline static void checkRetcode(uint8_t cmdResult, std::string_view paramName) {
1515
if (cmdResult != 0) {
1616
std::ostringstream ss;
17-
ss << paramName << " returned non-successfull code (0x" << std::hex << std::setfill('0') << std::setw(2) << cmdResult << ')';
17+
ss << paramName << " returned non-successfull code (0x" << std::hex << std::setfill('0') << std::setw(2) << static_cast<int>(cmdResult) << ')';
1818
throw UnexpectedBehaviourError(ss.str());
1919
}
2020
}

0 commit comments

Comments
 (0)