From 2f5ab4c4b8cea493022655577f70eb5d0256c64e Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 2 Oct 2024 13:47:35 -0400 Subject: [PATCH] YJIT: Merge `impl VALUE` blocks [ci skip] Reported by Kevin Menard. --- yjit/src/cruby.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/yjit/src/cruby.rs b/yjit/src/cruby.rs index 0709e2a079..702aaf51bc 100644 --- a/yjit/src/cruby.rs +++ b/yjit/src/cruby.rs @@ -541,9 +541,7 @@ impl VALUE { ptr } -} -impl VALUE { pub fn fixnum_from_usize(item: usize) -> Self { assert!(item <= (RUBY_FIXNUM_MAX as usize)); // An unsigned will always be greater than RUBY_FIXNUM_MIN let k: usize = item.wrapping_add(item.wrapping_add(1));