aboutsummaryrefslogtreecommitdiffstats
path: root/common/pybindings.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-07 12:57:52 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-07 12:57:52 +0200
commitb0e66d441cf584e7e48049d4f07afcc8e743309a (patch)
treeb74e2ff57532f59fac5bd5246b6312d3f8ec739d /common/pybindings.h
parenta5249da02d2a55d4b838dd8c29e159513dd71418 (diff)
downloadnextpnr-b0e66d441cf584e7e48049d4f07afcc8e743309a.tar.gz
nextpnr-b0e66d441cf584e7e48049d4f07afcc8e743309a.tar.bz2
nextpnr-b0e66d441cf584e7e48049d4f07afcc8e743309a.zip
Global design object working
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/pybindings.h')
-rw-r--r--common/pybindings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/pybindings.h b/common/pybindings.h
index 44898198..a99ad51b 100644
--- a/common/pybindings.h
+++ b/common/pybindings.h
@@ -94,7 +94,7 @@ void python_export_global(const char *name, Tn &x) {
return;
d = PyModule_GetDict(m);
try {
- PyObject * p = object(boost::ref(x)).ptr();
+ PyObject * p = incref(object(boost::ref(x)).ptr());
PyDict_SetItemString(d, name, p);
} catch (boost::python::error_already_set const &) {
// Parse and output the exception