From 977a99a2c74537f781b1aa93c1944ccf685bdfb0 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 31 Aug 2004 20:15:54 +0000 Subject: [PATCH] fix solaris warning git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6183 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/pyprimtypes.swg | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/SWIG/Lib/python/pyprimtypes.swg b/SWIG/Lib/python/pyprimtypes.swg index 8e23870c6..f8fe86cf7 100644 --- a/SWIG/Lib/python/pyprimtypes.swg +++ b/SWIG/Lib/python/pyprimtypes.swg @@ -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("","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 }