Bug fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-08-16 18:12:50 +00:00
commit c9a1a80211

View file

@ -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;