Closed tripleslash closed 10 years ago
Thank you for the report! Should __int64 not qualify as a native integer part? I wonder what the best solution would be. Either it's handled as a user type or it is implicitly converted to "double" (most of the times lua_Number is double anyways), in which case I would prefer the warning to stay, since it introduces a possibility of failure. A solution may be to check the bounds of the actual number given and throw if the number gets too large to be represented with a double (or what lua_Number is defined to be).
Thanks again!
A pragma warning disable would work as well then :D
This can be fixed by just adding a static_cast around the value in native_converter.hpp. I just prefer to have no warnings in my build.