File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -366,9 +366,8 @@ same trait object.
366
366
* zero-extend if the source is unsigned
367
367
* sign-extend if the source is signed
368
368
* Casting from a float to an integer will round the float towards zero
369
- * ** [ NOTE: currently this will cause Undefined Behavior if the rounded
370
- value cannot be represented by the target integer type] [ float-int ] ** .
371
- This includes Inf and NaN. This is a bug and will be fixed.
369
+ * ` NaN ` will return ` 0 ` and values outside the integer range will
370
+ saturate to the integer minimum/maximum.
372
371
* Casting from an integer to float will produce the closest possible float \*
373
372
* if necessary, rounding is according to ` roundTiesToEven ` mode \*\*\*
374
373
* on overflow, infinity (of the same sign as the input) is produced
You can’t perform that action at this time.
0 commit comments