1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed Unescape hex decoding

This commit is contained in:
Brian Fiete 2022-09-20 11:24:17 -07:00
parent 38d47fa254
commit fd4ea4e650

View file

@ -562,7 +562,7 @@ namespace System
if ((hexC >= '0') && (hexC <= '9'))
num = num*0x10 + (uint8)(hexC - '0');
else if ((hexC >= 'A') && (hexC <= 'F'))
num = num*0x10 + (uint8)(c - 'A') + 10;
num = num*0x10 + (uint8)(hexC - 'A') + 10;
else if ((hexC >= 'a') && (hexC <= 'f'))
num = num*0x10 + (uint8)(hexC - 'a') + 10;
else return .Err;