scilab: fix C90 non conformance

This commit is contained in:
simon 2016-03-11 18:03:32 +01:00
commit e2e06c0031

View file

@ -196,14 +196,15 @@ SwigScilabPtrToObject(void *pvApiCtx, int iVar, void **pvObj, swig_type_info *de
if (pvPtr) { if (pvPtr) {
if (descriptor) { if (descriptor) {
swig_cast_info *cast = SWIG_TypeCheck(SWIG_TypeName((swig_type_info *)pvTypeinfo), descriptor); swig_cast_info *cast = SWIG_TypeCheck(SWIG_TypeName((swig_type_info *)pvTypeinfo), descriptor);
if (!cast) { if (cast) {
return SWIG_ERROR;
}
int newmemory = 0; int newmemory = 0;
pvPtr = SWIG_TypeCast(cast, pvPtr, &newmemory); pvPtr = SWIG_TypeCast(cast, pvPtr, &newmemory);
// TODO newmemory // TODO newmemory
} }
else {
return SWIG_ERROR;
}
}
} }
} }
else if (iType == sci_pointer) { else if (iType == sci_pointer) {