string handling mods to keep gcc-4.2 happy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
22be676b23
commit
79eea19382
3 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@
|
|||
static int asptr(PyObject *obj, std::multimap<K,T> **val) {
|
||||
int res = SWIG_ERROR;
|
||||
if (PyDict_Check(obj)) {
|
||||
PyObject_var items = PyMapping_Items(obj);
|
||||
PyObject_var items = PyObject_CallMethod(obj,"items",NULL);
|
||||
return traits_asptr_stdseq<std::multimap<K,T>, std::pair<K, T> >::asptr(items, val);
|
||||
} else {
|
||||
multimap_type *p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue