From: <vin...@us...> - 2011-03-23 15:38:17
|
Revision: 12550 http://swig.svn.sourceforge.net/swig/?rev=12550&view=rev Author: vincentcouvert Date: 2011-03-23 15:38:11 +0000 (Wed, 23 Mar 2011) Log Message: ----------- Change mapping for C++ Modified Paths: -------------- branches/gsoc2009-sploving/Lib/scilab/scitypemaps.swg Modified: branches/gsoc2009-sploving/Lib/scilab/scitypemaps.swg =================================================================== --- branches/gsoc2009-sploving/Lib/scilab/scitypemaps.swg 2011-03-23 15:37:30 UTC (rev 12549) +++ branches/gsoc2009-sploving/Lib/scilab/scitypemaps.swg 2011-03-23 15:38:11 UTC (rev 12550) @@ -1309,7 +1309,8 @@ %enddef /* Basic C types */ -%typemap(varout,noblock=1) signed char { SCILAB_SCALAR_VAROUT(signed char, createMatrixOfInteger8) } +/* 'signed char' casted to 'char' because C++ refuses to call createMatrixOfInteger8 with a 'signed char' 5th input */ +%typemap(varout,noblock=1) signed char { SCILAB_SCALAR_VAROUT(char, createMatrixOfInteger8) } %typemap(varout,noblock=1) unsigned char { SCILAB_SCALAR_VAROUT(unsigned char, createMatrixOfUnsignedInteger8) } %typemap(varout,noblock=1) signed short { SCILAB_SCALAR_VAROUT(signed short, createMatrixOfInteger16) } %typemap(varout,noblock=1) unsigned short { SCILAB_SCALAR_VAROUT(unsigned short, createMatrixOfUnsignedInteger16) } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |