-
Notifications
You must be signed in to change notification settings - Fork 134
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
truncate/1 incorrect #2772
Comments
In fact,
|
|
From a preliminary glance, I found: scryer-prolog/src/machine/dispatch.rs Line 938 in 00e6e32
|
Oh this is the place I couldn't find again while working on this part of the codebase. |
Yup, that does the trick :) |
Fixes mthom#2772. The current implementation of `rnd_i` incorrectly casts `f` (an `f64`) into an `i64`, before casting it into an `Integer`. This fixes that issue by using `Integer::try_from(f)` instead.
The text was updated successfully, but these errors were encountered: