From aab48ede0952a825edc78bef75200680466cb5dd Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 5 Mar 2010 19:28:13 +0000 Subject: * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract address as UnsignedLongLong, not LongLong. --- gdb/python/py-lazy-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-lazy-string.c') diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c index c845273..8309527 100644 --- a/gdb/python/py-lazy-string.c +++ b/gdb/python/py-lazy-string.c @@ -187,7 +187,7 @@ gdbpy_extract_lazy_string (PyObject *string, struct type **str_type, goto error; *length = PyLong_AsLong (py_len); - addr = PyLong_AsLongLong (py_addr); + addr = PyLong_AsUnsignedLongLong (py_addr); /* If the user supplies Py_None an encoding, set encoding to NULL. This will trigger the resulting LA_PRINT_CALL to automatically -- cgit v1.1