Cast runes to u32 instead of int for comparison
This commit is contained in:
parent
61f85cfdda
commit
1ca8a9ce98
@ -66,10 +66,10 @@ export fn validate_board_name(board: str) (void | invalid_board) = {
|
||||
for (true) match (strings::next(&iter)) {
|
||||
case let run: rune =>
|
||||
if (
|
||||
run: int == '/' ||
|
||||
run: int == '.' ||
|
||||
run: int == '\\' ||
|
||||
run: int == ':') {
|
||||
run: u32 == '/' ||
|
||||
run: u32 == '.' ||
|
||||
run: u32 == '\\' ||
|
||||
run: u32 == ':') {
|
||||
return invalid_board;
|
||||
};
|
||||
case done => return void;
|
||||
|
Loading…
Reference in New Issue
Block a user