Binding a member float var produces verbose compiler warnings in MSVC 2017
In Class Declaration:
float HScale;
In Class Definition:
Sqrat::Class<graphicattributes> cGraphicAttributes( vm, "GraphicAttributes" );
cGraphicAttributes.Var( "HScale", &GraphicAttributes::HScale );</graphicattributes>
Warnings:
sqratTypes.h(61): warning C4244: 'argument': conversion from 'float' to 'const SQInteger', possible loss of data
sqratTypes.h(256): note: see reference to class template instantiation 'Sqrat::is_convertible<t,sqinteger>' being compiled
with
[
T=float
]
sqratTypes.h(252): note: while compiling class template member function 'void Sqrat::Var<t &="">::push(HSQUIRRELVM,T &)'
with
[
T=float
]</t></t,sqinteger>
et al.
I have SCRAT_USE_EXCEPTIONS defined, but that doesn't seem to matter.
If you're able to submit a pull request that fixes these compiler-specific warnings without changing any functionality, I'll accept it.