mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-29 23:36:06 +08:00
* python/py-arch.c (archpy_disassemble): Use PyInt_Check and
PyLong_Check.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* python/py-arch.c (archpy_disassemble): Use PyInt_Check and
|
||||||
|
PyLong_Check.
|
||||||
|
|
||||||
2013-02-28 Doug Evans <dje@google.com>
|
2013-02-28 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
|
* python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
|
||||||
|
@ -111,12 +111,12 @@ archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw)
|
|||||||
start = start_temp;
|
start = start_temp;
|
||||||
if (end_obj)
|
if (end_obj)
|
||||||
{
|
{
|
||||||
if (PyObject_TypeCheck (end_obj, &PyInt_Type))
|
if (PyLong_Check (end_obj))
|
||||||
|
end = PyLong_AsUnsignedLongLong (end_obj);
|
||||||
|
else if (PyInt_Check (end_obj))
|
||||||
/* If the end_pc value is specified without a trailing 'L', end_obj will
|
/* If the end_pc value is specified without a trailing 'L', end_obj will
|
||||||
be an integer and not a long integer. */
|
be an integer and not a long integer. */
|
||||||
end = PyInt_AsLong (end_obj);
|
end = PyInt_AsLong (end_obj);
|
||||||
else if (PyObject_TypeCheck (end_obj, &PyLong_Type))
|
|
||||||
end = PyLong_AsUnsignedLongLong (end_obj);
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Py_DECREF (end_obj);
|
Py_DECREF (end_obj);
|
||||||
|
Reference in New Issue
Block a user