fix warning and possible error for 64bits

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6195 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-09-01 08:42:37 +00:00
commit 977bef6407
2 changed files with 6 additions and 6 deletions

View file

@ -82,14 +82,14 @@
%typemap(varin) SWIGTYPE [ANY] {
void *temp;
int ii;
size_t ii;
$1_basetype *b = 0;
if ((SWIG_ConvertPtr($input, &temp, $1_descriptor, SWIG_POINTER_EXCEPTION)) == -1) {
PyErr_SetString(PyExc_TypeError, "C/C++ variable '$name ($1_ltype)'");
return 1;
}
b = ($1_basetype *) $1;
for (ii = 0; ii < $1_size; ii++) b[ii] = *(($1_basetype *) temp + ii);
for (ii = 0; ii < (size_t) $1_size; ii++) b[ii] = *(($1_basetype *) temp + ii);
}
%typemap(varin) SWIGTYPE * {