oops better really to the upper case version

This commit is contained in:
UbitUmarov
2020-12-29 14:45:59 +00:00
parent 71065f19ad
commit f79ebcc10f

View File

@@ -1155,14 +1155,14 @@ namespace OpenSim.Framework
public static char LowNibbleToHexByteCharHighcaps(byte b)
{
b &= 0x0f;
return (char)(b > 9 ? b + 0x57 : b + '0');
return (char)(b > 9 ? b + 0x37 : b + '0');
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static char HighNibbleToHexByteCharHighcaps(byte b)
{
b >>= 4;
return (char)(b > 9 ? b + 0x57 : b + '0');
return (char)(b > 9 ? b + 0x37 : b + '0');
}
public static string bytesToHexString(byte[] bytes, bool lowerCaps)