Skip to content

Commit b5e022e

Browse files
authored
fix building jaq-interpret tests on 32-bit platforms (#159)
4999950000 overflows a usize (u32)
1 parent ce988d5 commit b5e022e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jaq-interpret/src/rc_lazy_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn drop() {
5050
let list = List::from_iter(0..100_000);
5151
// clone() ensures that we keep a copy of the whole list around
5252
// sum() then evaluates the whole list
53-
assert_eq!(list.clone().sum::<usize>(), 4999950000);
53+
assert_eq!(list.clone().sum::<u64>(), 4999950000);
5454
// at the end, a long, fully evaluated list is dropped,
5555
// which would result in a stack overflow without the custom `Drop` impl
5656
std::mem::drop(list);

0 commit comments

Comments
 (0)