Skip to content

Commit

Permalink
fixed si_hex_digit si_between issue again
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Jun 25, 2023
1 parent 572188f commit a938df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sili.h
Original file line number Diff line number Diff line change
Expand Up @@ -2816,10 +2816,10 @@ i32 si_hex_digit_to_int(char c) {
if (si_char_is_digit(c)) {
return si_digit_to_int(c);
}
else if (c <= 'a' && c >= 'f') {
else if (si_between(c, 'a', 'f')) {
return c - 'a' + 10;
}
else if (c <= 'A' && c >= 'F') {
else if (si_between(c, 'A', 'F')) {
return c - 'A' + 10;
}

Expand Down

0 comments on commit a938df0

Please sign in to comment.