correctly read out int values, this fixes the wrong number of keys displayed and all other values which are ints with more than one byte

This commit is contained in:
Denis Ahrens
2013-01-31 18:36:00 +01:00
parent 3212d78eac
commit 95dfefbe13

View File

@ -37,7 +37,7 @@ UInt32 _strtoul(char *str, int size, int base)
if (base == 16) if (base == 16)
total += str[i] << (size - 1 - i) * 8; total += str[i] << (size - 1 - i) * 8;
else else
total += (unsigned char) (str[i] << (size - 1 - i) * 8); total += ((unsigned char) (str[i]) << (size - 1 - i) * 8);
} }
return total; return total;
} }