From c9a1a80211e739a167e2829aea82ceebd766dc11 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Wed, 16 Aug 2000 18:12:50 +0000 Subject: [PATCH] Bug fixes git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@663 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/python.swg | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Lib/python/python.swg b/Lib/python/python.swg index 5c6a8dc7a..f78eefcab 100644 --- a/Lib/python/python.swg +++ b/Lib/python/python.swg @@ -20,6 +20,16 @@ extern "C" { #define SWIG_PY_STRING 3 #define SWIG_PY_POINTER 4 +/* Constant information structure */ +typedef struct _swig_const_info { + int type; + char *name; + long lvalue; + double dvalue; + void *pvalue; + _swig_type_info **ptype; +} _swig_const_info; + #ifdef SWIG_NOINCLUDE SWIGEXPORT(PyObject *) SWIG_newvarlink(); @@ -213,7 +223,7 @@ cobject: if (ty) { tc = SWIG_TypeCheck(c,ty); if (!tc) goto type_error; - *ptr = SWIG_TypeCast(tc,p); + *ptr = SWIG_TypeCast(tc,(void*)p); } return 0;