fix solaris warning

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6183 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-08-31 20:15:54 +00:00
commit 977a99a2c7

View file

@ -10,14 +10,14 @@
%insert(header) {
SWIG_define(SWIG_From(signed char), PyInt_FromLong);
SWIG_define(SWIG_From(unsigned char), PyInt_FromLong);
SWIG_define(SWIG_From(short), PyInt_FromLong);
SWIG_define(SWIG_From(unsigned short), PyInt_FromLong);
SWIG_define(SWIG_From(int), PyInt_FromLong);
SWIG_define(SWIG_From(long), PyInt_FromLong);
SWIG_define(SWIG_From(float), PyFloat_FromDouble);
SWIG_define(SWIG_From(double), PyFloat_FromDouble);
SWIG_define(SWIG_From(signed char), PyInt_FromLong)
SWIG_define(SWIG_From(unsigned char), PyInt_FromLong)
SWIG_define(SWIG_From(short), PyInt_FromLong)
SWIG_define(SWIG_From(unsigned short), PyInt_FromLong)
SWIG_define(SWIG_From(int), PyInt_FromLong)
SWIG_define(SWIG_From(long), PyInt_FromLong)
SWIG_define(SWIG_From(float), PyFloat_FromDouble)
SWIG_define(SWIG_From(double), PyFloat_FromDouble)
}
%fragment("<limits.h>","header") %{
@ -359,9 +359,9 @@ SWIGSTATICINLINE(unsigned int)
fragment=SWIG_From_frag(long),
fragment=SWIG_From_frag(unsigned long)) {
%#if UINT_MAX < LONG_MAX
SWIG_define(SWIG_From(unsigned int), SWIG_From(long));
SWIG_define(SWIG_From(unsigned int), SWIG_From(long))
%#else
SWIG_define(SWIG_From(unsigned int), SWIG_From(unsigned long));
SWIG_define(SWIG_From(unsigned int), SWIG_From(unsigned long))
%#endif
}