From 200bc880f4ba86e027c4f45cbc912f494da768f2 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 10 Aug 2012 18:55:18 +0000 Subject: * python/py-type.c (convert_field): Use gdb_py_long_from_longest for TYPE_FIELD_BITPOS. (typy_get_sizeof): Likewise for TYPE_LENGTH. --- gdb/python/py-type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/python') diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 98030a6..a02402e 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -176,7 +176,7 @@ convert_field (struct type *type, int field) } else { - arg = PyLong_FromLong (TYPE_FIELD_BITPOS (type, field)); + arg = gdb_py_long_from_longest (TYPE_FIELD_BITPOS (type, field)); attrstring = "bitpos"; } @@ -683,7 +683,7 @@ typy_get_sizeof (PyObject *self, void *closure) } /* Ignore exceptions. */ - return PyLong_FromLong (TYPE_LENGTH (type)); + return gdb_py_long_from_longest (TYPE_LENGTH (type)); } static struct type * -- cgit v1.1