fix sorting problem with template types, strcmp can't be used directly with the DOH_String type. Use Cmp

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-08-26 07:06:10 +00:00
commit 6536806412
2 changed files with 19 additions and 24 deletions

View file

@ -1773,7 +1773,7 @@ void SwigType_inherit_equiv(File *out) {
/* Helper function to sort the mangled list */
static int SwigType_compare_mangled(const DOH *a, const DOH *b) {
return strcmp(DohData(a), DohData(b));
return Cmp(a, b);
}
/* -----------------------------------------------------------------------------