diff --git a/include/mcl/conversion.hpp b/include/mcl/conversion.hpp index 745d376..7a04b7f 100644 --- a/include/mcl/conversion.hpp +++ b/include/mcl/conversion.hpp @@ -147,7 +147,7 @@ inline bool hexCharToUint8(uint8_t *v, char _c) } else { return false; } - *v = c; + *v = uint8_t(c); return true; }