Should be using '&&' and not '||' when making sure the character is in the expected range.
*number = 0;
return f_none;
}
- else if (string[j] > 0x29 || string[j] < 0x3a) {
+ else if (string[j] > 0x29 && string[j] < 0x3a) {
mode = 10;
}
else if (string[j] == 0x78 || string[j] == 0x58) {
*number = 0;
return f_none;
}
- else if (string[j] > 0x29 || string[j] < 0x3a) {
+ else if (string[j] > 0x29 && string[j] < 0x3a) {
mode = 10;
}
else if (string[j] == 0x78 || string[j] == 0x58) {