File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -239,9 +239,6 @@ where
239239 panic ! ( "`amount` of samples must be less than or equal to `length`" ) ;
240240 }
241241 if length > ( u32:: MAX as usize ) {
242- #[ cfg( target_pointer_width = "32" ) ]
243- unreachable ! ( ) ;
244-
245242 // We never want to use inplace here, but could use floyd's alg
246243 // Lazy version: always use the cache alg.
247244 #[ cfg( target_pointer_width = "64" ) ]
@@ -303,15 +300,8 @@ where
303300 X : Into < f64 > ,
304301{
305302 if length > ( u32:: MAX as usize ) {
306- #[ cfg( target_pointer_width = "32" ) ]
307- unreachable ! ( ) ;
308-
309303 #[ cfg( target_pointer_width = "64" ) ]
310- {
311- let amount = amount as u64 ;
312- let length = length as u64 ;
313- sample_efraimidis_spirakis ( rng, length, weight, amount)
314- }
304+ sample_efraimidis_spirakis ( rng, length as u64 , weight, amount as u64 )
315305 } else {
316306 assert ! ( amount <= u32 :: MAX as usize ) ;
317307 let amount = amount as u32 ;
You can’t perform that action at this time.
0 commit comments