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)) {
|
for (true) match (strings::next(&iter)) {
|
||||||
case let run: rune =>
|
case let run: rune =>
|
||||||
if (
|
if (
|
||||||
run: int == '/' ||
|
run: u32 == '/' ||
|
||||||
run: int == '.' ||
|
run: u32 == '.' ||
|
||||||
run: int == '\\' ||
|
run: u32 == '\\' ||
|
||||||
run: int == ':') {
|
run: u32 == ':') {
|
||||||
return invalid_board;
|
return invalid_board;
|
||||||
};
|
};
|
||||||
case done => return void;
|
case done => return void;
|
||||||
|
Loading…
Reference in New Issue
Block a user