LilithHafner / InterLanguageSortingComparisons

6 stars 2 forks source link

C++ implementation invokes undefined behavior on NaNs #9

Open LilithHafner opened 1 year ago

LilithHafner commented 1 year ago

The algorithm is expected to handle all floating point values safely, but the C++ one doesn't.

Originally posted by @orlp in https://github.com/LilithHafner/InterLanguageSortingComparisons/pull/8#issuecomment-1422261905