From: Marcelo M. <mar...@us...> - 2006-01-06 23:13:20
|
Update of /cvsroot/swig/SWIG/Lib/typemaps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18163/Lib/typemaps Modified Files: swigtype.swg Log Message: avoid signed/unsigned warns Index: swigtype.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/typemaps/swigtype.swg,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** swigtype.swg 6 Jan 2006 23:08:06 -0000 1.20 --- swigtype.swg 6 Jan 2006 23:13:12 -0000 1.21 *************** *** 132,136 **** if (inp) { size_t ii = 0; ! for (; ii < $dim0; ++ii) $1[ii] = $input[ii]; } else { %variable_nullref("$type","$name"); --- 132,136 ---- if (inp) { size_t ii = 0; ! for (; ii < (size_t)$dim0; ++ii) $1[ii] = $input[ii]; } else { %variable_nullref("$type","$name"); *************** *** 146,150 **** size_t ii = 0; $basetype *dest = %static_cast($1, $basetype *); ! for (; ii < $dim0; ++ii) dest[ii] = inp[ii]; } else { %variable_nullref("$type", "$name"); --- 146,150 ---- size_t ii = 0; $basetype *dest = %static_cast($1, $basetype *); ! for (; ii < (size_t)$dim0; ++ii) dest[ii] = inp[ii]; } else { %variable_nullref("$type", "$name"); *************** *** 160,169 **** $basetype (*dest)[$dim1] = %static_cast($1, $basetype (*)[$dim1]); size_t ii = 0; ! for (; ii < $dim0; ++ii) { $basetype *ip = inp[ii]; if (ip) { $basetype *dp = dest[ii]; size_t jj = 0; ! for (; jj < $dim1; ++jj) dp[jj] = ip[jj]; } else { %variable_nullref("$type","$name"); --- 160,169 ---- $basetype (*dest)[$dim1] = %static_cast($1, $basetype (*)[$dim1]); size_t ii = 0; ! for (; ii < (size_t)$dim0; ++ii) { $basetype *ip = inp[ii]; if (ip) { $basetype *dp = dest[ii]; size_t jj = 0; ! for (; jj < (size_t)$dim1; ++jj) dp[jj] = ip[jj]; } else { %variable_nullref("$type","$name"); *************** *** 180,189 **** $basetype (*dest)[$dim1] = %static_cast($1, $basetype (*)[$dim1]); size_t ii = 0; ! for (; ii < $dim0; ++ii) { $basetype *ip = inp[ii]; if (ip) { $basetype *dp = dest[ii]; size_t jj = 0; ! for (; jj < $dim1; ++jj) dp[jj] = ip[jj]; } else { %variable_nullref("$type","$name"); --- 180,189 ---- $basetype (*dest)[$dim1] = %static_cast($1, $basetype (*)[$dim1]); size_t ii = 0; ! for (; ii < (size_t)$dim0; ++ii) { $basetype *ip = inp[ii]; if (ip) { $basetype *dp = dest[ii]; size_t jj = 0; ! for (; jj < (size_t)$dim1; ++jj) dp[jj] = ip[jj]; } else { %variable_nullref("$type","$name"); |