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:
parent
da9e9120c0
commit
21e92ae015
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue