-
Notifications
You must be signed in to change notification settings - Fork 59
Fixes for integer precision loss #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -468,7 +468,7 @@ size_t minisketch_merge(minisketch* sketch, const minisketch* other_sketch) { | |
| ssize_t minisketch_decode(const minisketch* sketch, size_t max_elements, uint64_t* output) { | ||
| const Sketch* s = (const Sketch*)sketch; | ||
| s->Check(); | ||
| return s->Decode(max_elements, output); | ||
| return s->Decode(static_cast<int>(max_elements), output); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmpf. Unsure what to do with this. It really means that max_elements cannot exceed 2^31-1 (or 2^16-1 on arcane platforms), which is likely the case in real use cases. But then again the API uses size_t and ssize_t which imply larger. I guess we should leave this as-is for now, and then separately have a good look at what would be needed to make the internal code support (s)size_t-sized sketches. |
||
| } | ||
|
|
||
| void minisketch_set_seed(minisketch* sketch, uint64_t seed) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.