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:
parent
2b82766407
commit
977a99a2c7
1 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue