diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-21 13:59:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-21 13:59:30 -0800 |
| commit | 0b46715bff7f047fefed303ae149d3de8eb6be4f (patch) | |
| tree | 3254b6d8fb97926f2c8831e344606a5f6dcfa97e /source/slang/core.meta.slang | |
| parent | 255ecf7993cc69d38525af7e711c24fae6f94ba5 (diff) | |
Fix parsing of literals in stdlib. (#3610)
* Fix parsing of literals in stdlib.
* Fix double lit limits.
Diffstat (limited to 'source/slang/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 1e1ef061e..b02a44c5c 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -997,8 +997,8 @@ extension float : IRangedValue extension double : IRangedValue { - static const double maxValue = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0; - static const double minValue = -179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0; + static const double maxValue = bit_cast<double>(0x7fefffffffffffffULL); + static const double minValue = bit_cast<double>(0xffefffffffffffffULL); } extension int : IRangedValue |
