Skip to content

Commit af1dd54

Browse files
committed
fix bug in "isDigit"
1 parent b9de671 commit af1dd54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/effect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ int current_alternative = 0;
1313
// num_alternatives == 3 means alt000/, alt001/, alt002/
1414
int num_alternatives = 0;
1515

16-
constexpr bool PO_isDigit(char s) { return s >= 0 && s <= '9'; }
16+
constexpr bool PO_isDigit(char s) { return s >= '0' && s <= '9'; }
1717
bool isAllDigits(const char* s) {
1818
for (;*s;s++) if(!PO_isDigit(*s)) return false;
1919
return true;

0 commit comments

Comments
 (0)