grass icon indicating copy to clipboard operation
grass copied to clipboard

MSVC: fix nan/inf issues on msvc and gcc

Open echoix opened this issue 11 months ago • 1 comments

Replaces #355

I cherry-picked and manually adjusted the remaining of #355 to be updated, mergeable, and reviewable. I don't necessarily endorse or think everything is needed, but allows to close #355 for the time being. Please look if these still make sense, considering the changes done in #2681. Do they apply correctly to MSVC?

echoix avatar Apr 06 '25 20:04 echoix

I've reverted in a separate commit to use the initialized value that is now used. When the original commit was made, it was initialized with nan (0.0/0.0). I wanted to show what the commit made when cherry-picking, so there would be a trace,

echoix avatar Apr 06 '25 20:04 echoix