Skip to content
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

Add support for float_to_int_unchecked #3660

Merged
merged 12 commits into from
Nov 6, 2024
Prev Previous commit
Next Next commit
Clarify comment
  • Loading branch information
zhassan-aws committed Oct 31, 2024
commit f6a4d285320dca50b695ebd28f102f87e08288d4
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,7 @@ impl GotocCtx<'_> {

/// Checks that the floating-point value is:
/// 1. Finite (i.e. neither infinite nor NaN)
/// 2. Is in range of the target integer
/// 2. Its truncated value is in range of the target integer
/// then performs the cast to the target type
pub fn codegen_float_to_int_unchecked(
&mut self,
Expand Down
Loading