d968efbc76
Particularly, the default `from_f64` used `n as i64`, which has undefined behavior on overflow, kind of defeating the purpose here. Now we use a checked `to_i64()` for this, and even try `to_u64()` as a fallback for completeness. (All of the primitive implementations already do better, at least.) |
||
---|---|---|
.. | ||
cast.rs |