diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-21 11:50:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 11:50:26 +0200 |
commit | 2273f13fbe7ba0482288e497031616ebd533308f (patch) | |
tree | 3f5aa6c3dab7c3a0329e4746f2b3ef709e32d143 /core/variant/variant_parser.cpp | |
parent | b5f5fac840914ec84ef373a38381432470e2da36 (diff) | |
parent | 4bd5e4fd9b80384d511e4c8f2f642b43159aba4c (diff) | |
download | redot-engine-2273f13fbe7ba0482288e497031616ebd533308f.tar.gz |
Merge pull request #50686 from Calinou/use-standard-inf-nan-constants
Use the standard C `INFINITY` and `NAN` constants directly
Diffstat (limited to 'core/variant/variant_parser.cpp')
-rw-r--r-- | core/variant/variant_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/variant_parser.cpp b/core/variant/variant_parser.cpp index 86d5ae7f38..f9c604fe3e 100644 --- a/core/variant/variant_parser.cpp +++ b/core/variant/variant_parser.cpp @@ -506,9 +506,9 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream, } else if (id == "null" || id == "nil") { value = Variant(); } else if (id == "inf") { - value = Math_INF; + value = INFINITY; } else if (id == "nan") { - value = Math_NAN; + value = NAN; } else if (id == "Vector2") { Vector<real_t> args; Error err = _parse_construct<real_t>(p_stream, args, line, r_err_str); |