Merge pull request #552 from JMarlin/master

#549 re-fixing the fix
This commit is contained in:
zilmar 2015-07-31 08:39:01 +10:00
commit 91b643bfe1
1 changed files with 3 additions and 3 deletions

View File

@ -30,12 +30,12 @@ DWORD CMemoryLabel::AsciiToHex (char * HexValue)
}
else
{
if(Current < 'A')
Current += 'A' - 'a';
if(Current > 'F')
Current -= 32; //32 is the distance between A and a
if (Current >= 'A' && Current <= 'F')
{
Value += Current + 10 - 'A';
Value += Current - 55; //55 is the code for 'A' less 10
}
else
{