Skip to content

Allow _cmp to return NAN, and handle comparisons with NAN properly.#317

Open
BenLubar wants to merge 1 commit intoalbertodemichelis:masterfrom
BenLubar:cmp-nan
Open

Allow _cmp to return NAN, and handle comparisons with NAN properly.#317
BenLubar wants to merge 1 commit intoalbertodemichelis:masterfrom
BenLubar:cmp-nan

Conversation

@BenLubar
Copy link

@BenLubar BenLubar commented Feb 1, 2026

Allow _cmp to return NAN, and handle comparisons with NAN properly.

Add NO_POINTER_CMP define which causes comparisons that would have compared pointers to throw instead.

Adds a new function (sq_cmpex) which allows callers to observe whether the comparison is NAN and whether the comparison completely failed.

Add NO_POINTER_CMP define which causes comparisons that would have compared pointers to throw instead.
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.

1 participant