diff options
Diffstat (limited to 'gdb/python/py-symtab.c')
-rw-r--r-- | gdb/python/py-symtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-symtab.c b/gdb/python/py-symtab.c index 85a30a6..95dda5d 100644 --- a/gdb/python/py-symtab.c +++ b/gdb/python/py-symtab.c @@ -186,7 +186,7 @@ salpy_get_pc (PyObject *self, void *closure) SALPY_REQUIRE_VALID (self, sal); - return PyLong_FromUnsignedLongLong (sal->pc); + return gdb_py_long_from_ulongest (sal->pc); } static PyObject * @@ -196,7 +196,7 @@ salpy_get_line (PyObject *self, void *closure) SALPY_REQUIRE_VALID (self, sal); - return PyLong_FromUnsignedLongLong (sal->line); + return PyInt_FromLong (sal->line); } static PyObject * |