-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug when mixing floating point with integer (#32)
* Add a check that ensures that the Min/Max functions run in the highest precision of the 2 parameters. Originally only the type of the first parameter was checked. Fixes a bug that would cause Min(2,1.97) to return 2 because 1.97 was converted to an int during expression evaluation.
- Loading branch information
1 parent
1ff7b74
commit 19359d6
Showing
2 changed files
with
151 additions
and
26 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