lmas/opensimplex

Different values on different os

Closed this issue · 4 comments

Hi. I'm bad speak on eng, sry. But your program return different values on Windows and MacOS.
I use c_int64 instead c_long. And fix this issue. Mb I'm dumb, help me) for right solve

return c_long(x).value

lmas commented

Hello and thanks for commenting. I'll try to look at this issue this weekend.

Have you tried to run the tests? Or what does your output values look like?

I'm creating a game now and I push seed to my users. And get difference maps.
You can init your class and get equals tile and get difference values on differences os.
sorry for bad English)

lmas commented

It is ok 👍
I managed to get some wrong output too on Windows.

Verified your fix, using c_int64, and it seems to be all good now. Thanks for telling me!