1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 01:58:30 +00:00

Changed ToHex-Conversion to use upper case characters

This commit is contained in:
Darth Affe 2018-06-10 21:57:10 +02:00
parent 328074bfa2
commit 263dddcee3

View File

@ -20,10 +20,10 @@
for (int bx = 0, cx = 0; bx < bytes.Length; ++bx, ++cx)
{
byte b = ((byte)(bytes[bx] >> 4));
c[cx] = (char)(b > 9 ? b + 0x37 + 0x20 : b + 0x30);
c[cx] = (char)(b > 9 ? b + 0x37: b + 0x30);
b = ((byte)(bytes[bx] & 0x0F));
c[++cx] = (char)(b > 9 ? b + 0x37 + 0x20 : b + 0x30);
c[++cx] = (char)(b > 9 ? b + 0x37: b + 0x30);
}
return new string(c);