0.0 float warning fix
This commit is contained in:
parent
f318bb8286
commit
4b5baf0a60
4 changed files with 4 additions and 4 deletions
|
|
@ -127,7 +127,7 @@ SWIG_AsVal_dec(Type)(JSValueRef o, Type *val)
|
||||||
float re;
|
float re;
|
||||||
int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re));
|
int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re));
|
||||||
if (SWIG_IsOK(res)) {
|
if (SWIG_IsOK(res)) {
|
||||||
if (val) *val = Constructor(re, 0.0);
|
if (val) *val = Constructor(re, 0.0f);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
int res = SWIG_AddCast(SWIG_AsVal(float)(ov, &d));
|
int res = SWIG_AddCast(SWIG_AsVal(float)(ov, &d));
|
||||||
if (SWIG_IsOK(res)) {
|
if (SWIG_IsOK(res)) {
|
||||||
if (val)
|
if (val)
|
||||||
*val = Constructor(d, 0.0);
|
*val = Constructor(d, 0.0f);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ SWIG_AsVal(Type)(PyObject *o, Type *val)
|
||||||
float re;
|
float re;
|
||||||
int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re));
|
int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re));
|
||||||
if (SWIG_IsOK(res)) {
|
if (SWIG_IsOK(res)) {
|
||||||
if (val) *val = Constructor(re, 0.0);
|
if (val) *val = Constructor(re, 0.0f);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ SWIG_AsVal(Type)(VALUE o, Type *val)
|
||||||
float re;
|
float re;
|
||||||
int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re));
|
int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re));
|
||||||
if (SWIG_IsOK(res)) {
|
if (SWIG_IsOK(res)) {
|
||||||
if (val) *val = Constructor(re, 0.0);
|
if (val) *val = Constructor(re, 0.0f);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue