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:
parent
bc72513c72
commit
6536806412
2 changed files with 19 additions and 24 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue