aboutsummaryrefslogtreecommitdiff
path: root/Lib/scilab
diff options
context:
space:
mode:
authorSimon Marchetto <simon.marchetto@scilab-enterprises.com>2018-02-01 10:09:35 +0100
committerSimon Marchetto <simon.marchetto@scilab-enterprises.com>2018-02-01 10:09:35 +0100
commit7a9ee39412bbb10d79d9cafb5f61a4fb5c00840e (patch)
tree44b182cb106c37a6f2290c56592f3d43a4cb896f /Lib/scilab
parent862501480efea950e33215cc49c1a20cb2af2958 (diff)
downloadswig-7a9ee39412bbb10d79d9cafb5f61a4fb5c00840e.tar.gz
[Scilab] fix compilation error
Diffstat (limited to 'Lib/scilab')
-rw-r--r--Lib/scilab/scirun.swg5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/scilab/scirun.swg b/Lib/scilab/scirun.swg
index a9e9d6351..3b2a96520 100644
--- a/Lib/scilab/scirun.swg
+++ b/Lib/scilab/scirun.swg
@@ -447,6 +447,7 @@ extern "C"
#endif
int SWIG_ptr(SWIG_GatewayParameters) {
if (SWIG_NbInputArgument(pvApiCtx) > 0) {
+ SciErr sciErr;
int *piAddrVar1 = NULL;
int iTypeVar1 = 0;
char *pstInputPtrTypeName = NULL;
@@ -454,7 +455,7 @@ int SWIG_ptr(SWIG_GatewayParameters) {
if (SWIG_NbInputArgument(pvApiCtx) > 2) {
int *piAddrVar2 = NULL;
int *piAddrVar3 = NULL;
- SciErr sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddrVar2);
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddrVar2);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;
@@ -472,7 +473,7 @@ int SWIG_ptr(SWIG_GatewayParameters) {
}
}
- SciErr sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddrVar1);
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddrVar1);
if (sciErr.iErr) {
printError(&sciErr, 0);
return SWIG_ERROR;