From 1ca8a9ce9842e2349dd1f41757f4a37f37411839 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 9 Oct 2024 22:36:43 -0400 Subject: [PATCH] Cast runes to u32 instead of int for comparison --- bulb/bulb.ha | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bulb/bulb.ha b/bulb/bulb.ha index 198909f..f21b0a5 100644 --- a/bulb/bulb.ha +++ b/bulb/bulb.ha @@ -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;