aboutsummaryrefslogtreecommitdiffstats
path: root/common/pycontainers.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/pycontainers.h')
-rw-r--r--common/pycontainers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/pycontainers.h b/common/pycontainers.h
index 04c670cc..3584b45e 100644
--- a/common/pycontainers.h
+++ b/common/pycontainers.h
@@ -410,7 +410,8 @@ template <typename T1, typename T2> struct map_pair_wrapper_uptr
if ((i >= 2) || (i < 0))
KeyError();
return (i == 1) ? object(PythonConversion::ContextualWrapper<V &>(x.ctx, *x.base.second.get()))
- : object(x.base.first);
+ : object(PythonConversion::string_converter<decltype(x.base.first)>().to_str(x.ctx,
+ x.base.first));
}
static int len(wrapped_pair &x) { return 2; }