mirror of
https://github.com/hholtmann/smcFanControl.git
synced 2025-11-04 19:49:16 +01:00
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:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user