-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsgen: fix incorrect
float32
-literal behaviour (#824)
## Summary Narrow the value of 32-bit float-literal nodes prior to rendering them, which fixes `float32` literals having an unexpected run-time value when their value as-written is not fully representable with the precision of a 32-bit float. ## Details Instead of using `toStrMaxPrecision`, which would add an unwanted `f` suffix, rendering the float value to text is done by directly calling `addFloatRoundtrip`, which `toStrMaxPrecision` uses internally.
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 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