-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.
checked_numeric_operator
returns a PrimitiveScalar (avoiding a D…
…Type allocation) 2. `checked_sub` delegates to `checked_numeric_operator` As a consequence of (2), `checked_sub` now returns an `None` when there is an underflow/overflow rather than returning a Null PrimitiveScalar (the return type is now `VortexResult<Option<PrimitiveScalar<'a>>>`). Moreover, `std::ops::Sub` now returns an error on underflow/overflow rather than a Null PrimitiveScalar.
- Loading branch information
Showing
3 changed files
with
90 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters