We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eca7e4d commit d33aa73Copy full SHA for d33aa73
rust/cubestore/cubehll/src/instance.rs
@@ -201,7 +201,7 @@ impl HllInstance {
201
let mut values = Vec::with_capacity(num_hashes);
202
let mut data = Cursor::new(data);
203
let maxval = (1 << reg_width) as u32 - 1;
204
- while !data.is_empty() {
+ while data.position() < data.get_ref().len() as u64 {
205
let hash = data.read_u64::<BigEndian>().unwrap();
206
let ind = hash & mask;
207
let val = hash >> log_num_buckets;
rust/cubestore/cubehll/src/lib.rs
@@ -1,4 +1,3 @@
1
-#![feature(cursor_remaining)]
2
/*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
0 commit comments