Skip to content
Snippets Groups Projects
Commit 8acccdbe authored by David Goulet's avatar David Goulet Committed by teor
Browse files

Add an util function to cast double to int64_t


Use it in the sample_laplace_distribution function to make sure we return
the correct converted value after math operations are done on the input
values.

Thanks to Yawning for proposing a solution.

Signed-off-by: default avatarDavid Goulet <dgoulet@ev0ke.net>
parent dad5eb7e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment