Skip to content

Work around msvc definition of INFINITY#1276

Merged
bnoordhuis merged 3 commits intoquickjs-ng:masterfrom
bnoordhuis:fix1275
Jan 4, 2026
Merged

Work around msvc definition of INFINITY#1276
bnoordhuis merged 3 commits intoquickjs-ng:masterfrom
bnoordhuis:fix1275

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

INFINITY is reportedly no longer a compile-time expression in some versions of MSVC. Work around that by minting an INFINITY from a uint64.

Pretty much the same as commit f93dd58 from November 2024, except for INFINITY instead of NAN.

Fixes: #1275

INFINITY is reportedly no longer a compile-time expression in some
versions of MSVC. Work around that by minting an INFINITY from a uint64.

Pretty much the same as commit f93dd58
from November 2024, except for INFINITY instead of NAN.

Fixes: quickjs-ng#1275
Comment thread quickjs.c Outdated
@bnoordhuis bnoordhuis merged commit 65a4a8e into quickjs-ng:master Jan 4, 2026
120 of 121 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incompatible with MSVC: initializer is not a constant

2 participants