Cast runes to u32 instead of int for comparison

This commit is contained in:
Sasha Koshka 2024-10-09 22:36:43 -04:00
parent 61f85cfdda
commit 1ca8a9ce98

View File

@ -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;