Fix Go support for enums to work correctly when Go int type is 64 bits.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Ian Lance Taylor 2012-10-30 23:38:57 +00:00
commit 786d883d45
2 changed files with 18 additions and 1 deletions

View file

@ -4709,6 +4709,11 @@ private:
Delete(q);
}
}
if (Language::enumLookup(t) != NULL || Strcmp(t, "enum ") == 0) {
is_int = true;
}
Delete(t);
if (is_int8) {
ret = NewString("char ");