mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-17 13:52:31 +01:00
14 lines
661 B
Diff
14 lines
661 B
Diff
diff --git a/jaq-interpret/src/rc_lazy_list.rs b/jaq-interpret/src/rc_lazy_list.rs
|
|
index 0342de9..20b7076 100644
|
|
--- a/jaq-interpret/src/rc_lazy_list.rs
|
|
+++ b/jaq-interpret/src/rc_lazy_list.rs
|
|
@@ -50,7 +50,7 @@ fn drop() {
|
|
let list = List::from_iter(0..100_000);
|
|
// clone() ensures that we keep a copy of the whole list around
|
|
// sum() then evaluates the whole list
|
|
- assert_eq!(list.clone().sum::<usize>(), 4999950000);
|
|
+ assert_eq!(list.clone().sum::<u64>(), 4999950000);
|
|
// at the end, a long, fully evaluated list is dropped,
|
|
// which would result in a stack overflow without the custom `Drop` impl
|
|
std::mem::drop(list);
|