From: <vin...@us...> - 2011-05-23 12:46:09
|
Revision: 12705 http://swig.svn.sourceforge.net/swig/?rev=12705&view=rev Author: vincentcouvert Date: 2011-05-23 12:46:03 +0000 (Mon, 23 May 2011) Log Message: ----------- Use temp int value to read boolean Modified Paths: -------------- branches/gsoc2009-sploving/Lib/scilab/scibool.swg Modified: branches/gsoc2009-sploving/Lib/scilab/scibool.swg =================================================================== --- branches/gsoc2009-sploving/Lib/scilab/scibool.swg 2011-05-21 22:33:36 UTC (rev 12704) +++ branches/gsoc2009-sploving/Lib/scilab/scibool.swg 2011-05-23 12:46:03 UTC (rev 12705) @@ -11,6 +11,7 @@ SciErr sciErr; int iRet = 0; int *piAddrVar = NULL; + int iTempValue = 0; sciErr = getVarAddressFromPosition(_pvApiCtx, _iVar, &piAddrVar); if (sciErr.iErr) { @@ -28,11 +29,13 @@ return SWIG_ERROR; } - iRet = getScalarBoolean(_pvApiCtx, piAddrVar, (int*)_pbValue); + iRet = getScalarBoolean(_pvApiCtx, piAddrVar, &iTempValue); if (iRet) { return SWIG_ERROR; } + *_pbValue = iTempValue; + return SWIG_OK; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |