You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is possible to do Value::Float(0.0), which would create an invalid value, because the canonical representation of (positive) zero is Value::Integer(SmallInteger::zero()). Rather than using f32 as the value for the Float variant, we should instead use a transparent wrapper type that checks the value cannot be invalid.
The text was updated successfully, but these errors were encountered:
Currently it is possible to do
Value::Float(0.0)
, which would create an invalid value, because the canonical representation of (positive) zero isValue::Integer(SmallInteger::zero())
. Rather than usingf32
as the value for theFloat
variant, we should instead use a transparent wrapper type that checks the value cannot be invalid.The text was updated successfully, but these errors were encountered: