diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 98030a6..afb8b72 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 = PyLong_FromLongLong (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 PyLong_FromLongLong (TYPE_LENGTH (type)); } static struct type *