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 something like Value::Integer(SmallInteger::try_from(SmallInteger::MAX_BIGINT).unwrap()), which does not panic and would result in an invalid value (because SmallInteger::MAX_BIGINT is outside the range of a safe integer).
To avoid this, we should probably make the base type SmallBigInt, since its valid range is larger, and make SmallInteger a wrapper over it that checks the range at construction.
The text was updated successfully, but these errors were encountered:
Currently it is possible to do something like
Value::Integer(SmallInteger::try_from(SmallInteger::MAX_BIGINT).unwrap())
, which does not panic and would result in an invalid value (becauseSmallInteger::MAX_BIGINT
is outside the range of a safe integer).To avoid this, we should probably make the base type
SmallBigInt
, since its valid range is larger, and makeSmallInteger
a wrapper over it that checks the range at construction.The text was updated successfully, but these errors were encountered: