forked from rebolsource/r3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TUPLE! crash after payload switch, round money
This addresses two test failures that had crept in after the payload fix that were low on the priority list (MONEY! and TUPLE!). Tuples can now be a maximum size of 7 elements instead of 10. Hardcoded numbers of "10" had to be adjusted. Rounding money did some interpretation of the ROUND/TO amount, so that the type of the /TO argument would influence the type of the result. So rounding $10.51 to 0.1 would give you 10.5, for instance. Not clear quite how the code was supposed to work before, but this makes it seem to work and is clearer.
- Loading branch information
1 parent
82de750
commit 2c7d58f
Showing
5 changed files
with
40 additions
and
24 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
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