fix warning reported by Nitro in VC7

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-18 01:27:30 +00:00
commit 5ebfa83e66
2 changed files with 3 additions and 3 deletions

View file

@ -334,7 +334,7 @@ namespace swig
typedef Reference reference;
typedef T value_type;
typedef T* pointer;
typedef ptrdiff_t difference_type;
typedef int difference_type;
PySequence_InputIterator()
{
@ -417,7 +417,7 @@ namespace swig
private:
PyObject* _seq;
int _index;
difference_type _index;
};
template <class T>

View file

@ -229,7 +229,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1,
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
while ((*f1 == ' ') && (f1 != l1)) ++f1;
while ((*f2 == ' ') && (f2 != l2)) ++f2;
if (*f1 != *f2) return (int)(*f1 - *f2);
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
}
return (l1 - f1) - (l2 - f2);
}