Skip to content

Commit

Permalink
fix bug in "isDigit"
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Dec 30, 2024
1 parent 49fd804 commit db5eb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int current_alternative = 0;
// num_alternatives == 3 means alt000/, alt001/, alt002/
int num_alternatives = 0;

constexpr bool PO_isDigit(char s) { return s >= 0 && s <= '9'; }
constexpr bool PO_isDigit(char s) { return s >= '0' && s <= '9'; }
bool isAllDigits(const char* s) {
for (;*s;s++) if(!PO_isDigit(*s)) return false;
return true;
Expand Down

0 comments on commit db5eb24

Please sign in to comment.