ThePhD / sol2

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
http://sol2.rtfd.io/
MIT License
4.06k stars 492 forks source link

sol2 llround in 32-bit mode #1541

Closed glebm closed 8 months ago

glebm commented 8 months ago

sol2 always appears to use llround even when Lua numbers are 32-bit.

It'd be nice if sol2 used the appropriate rounding function.

glebm commented 8 months ago

I suppose this makes sense because floats can be much larger than ints, nevermind.