1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Lowercase hex fix

This commit is contained in:
Brian Fiete 2024-04-27 08:38:35 -04:00
parent da9e9120c0
commit 21e92ae015

View file

@ -6262,7 +6262,6 @@ static String IntTypeToString(T val, const StringImpl& name, DwDisplayInfo* disp
return StrFormat(format.c_str(), (std::make_unsigned<T>::type)(val)); return StrFormat(format.c_str(), (std::make_unsigned<T>::type)(val));
} }
//TODO: Implement HexadecimalLower
if (intDisplayType == DwIntDisplayType_HexadecimalLower) if (intDisplayType == DwIntDisplayType_HexadecimalLower)
{ {
String format; String format;
@ -6271,8 +6270,8 @@ static String IntTypeToString(T val, const StringImpl& name, DwDisplayInfo* disp
format = StrFormat("0x%%l@\n%s", name.c_str()); format = StrFormat("0x%%l@\n%s", name.c_str());
} }
else else
format = StrFormat("0x%%0%dX\n%s", sizeof(val) * 2, name.c_str()); format = StrFormat("0x%%0%dx\n%s", sizeof(val) * 2, name.c_str());
return StrFormat(format.c_str(), (std::make_unsigned<T>::type)(val)); return ToLower(StrFormat(format.c_str(), (std::make_unsigned<T>::type)(val)));
} }
if (std::is_unsigned<T>::value) if (std::is_unsigned<T>::value)