Fixed weird enum type-handling problem (maybe).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-08-18 19:36:43 +00:00
commit cc0d9475bf

View file

@ -1284,7 +1284,7 @@ int SwigType_type(SwigType *t)
if (strcmp(c,"double") == 0) return T_DOUBLE;
if (strcmp(c,"void") == 0) return T_VOID;
if (strcmp(c,"bool") == 0) return T_BOOL;
if (strncmp(c,"enum ",5) == 0) return T_INT;
/* Hmmm. Unknown type */
if (SwigType_istypedef(t)) {
int r;