0.0 float warning fix

This commit is contained in:
William S Fulton 2020-10-10 12:36:39 +01:00
commit 4b5baf0a60
4 changed files with 4 additions and 4 deletions

View file

@ -127,7 +127,7 @@ SWIG_AsVal_dec(Type)(JSValueRef o, Type *val)
float re;
int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re));
if (SWIG_IsOK(res)) {
if (val) *val = Constructor(re, 0.0);
if (val) *val = Constructor(re, 0.0f);
return res;
}
}