diff options
author | simon <simon@debian82x64> | 2016-03-11 18:03:32 +0100 |
---|---|---|
committer | simon <simon@debian82x64> | 2016-03-11 18:03:32 +0100 |
commit | e2e06c00317a20d896a07ec9c87ff1a66047bca0 (patch) | |
tree | a87a57dcac4a4ca6d86e83da65a278434c14ee56 /Lib/scilab | |
parent | 1846dec8992fc8252a00dba943c8bc2e00ea6338 (diff) | |
download | swig-e2e06c00317a20d896a07ec9c87ff1a66047bca0.tar.gz |
scilab: fix C90 non conformance
Diffstat (limited to 'Lib/scilab')
-rw-r--r-- | Lib/scilab/scirun.swg | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/scilab/scirun.swg b/Lib/scilab/scirun.swg index 21c32ac74..e92df43fb 100644 --- a/Lib/scilab/scirun.swg +++ b/Lib/scilab/scirun.swg @@ -196,13 +196,14 @@ SwigScilabPtrToObject(void *pvApiCtx, int iVar, void **pvObj, swig_type_info *de if (pvPtr) { if (descriptor) { swig_cast_info *cast = SWIG_TypeCheck(SWIG_TypeName((swig_type_info *)pvTypeinfo), descriptor); - if (!cast) { + if (cast) { + int newmemory = 0; + pvPtr = SWIG_TypeCast(cast, pvPtr, &newmemory); + // TODO newmemory + } + else { return SWIG_ERROR; } - - int newmemory = 0; - pvPtr = SWIG_TypeCast(cast, pvPtr, &newmemory); - // TODO newmemory } } } |