diff options
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index bb88bf3..6e29284 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -1860,7 +1860,7 @@ convert_value_from_python (PyObject *obj) if (PyErr_ExceptionMatches (PyExc_OverflowError)) { gdbpy_err_fetch fetched_error; - gdbpy_ref<> zero (PyInt_FromLong (0)); + gdbpy_ref<> zero = gdb_py_object_from_longest (0); /* Check whether obj is positive. */ if (PyObject_RichCompareBool (obj, zero.get (), Py_GT) > 0) |