From a03ca6510ec0485ce4c34c4788138d49b474ce0b Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Thu, 18 Sep 2025 14:42:37 -0700 Subject: [PATCH] usize --- program/src/reset.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/src/reset.rs b/program/src/reset.rs index 4ad050f..b1082ec 100644 --- a/program/src/reset.rs +++ b/program/src/reset.rs @@ -35,7 +35,7 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul } else { // Cannot get slot hash. No one wins. board.slot_hash = [u8::MAX; 32]; - (u64::MAX, 0) + (u64::MAX as usize, 0) }; // No one won. Vault all prospects. @@ -49,7 +49,7 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul // Get winnings amount (prospects on all non-winning squares). let mut winnings = 0; for (i, prospects) in board.prospects.iter().enumerate() { - if i as u64 != winning_square { + if i != winning_square { winnings += prospects; } }