diff options
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index c2db2d5..26cbac3 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -1537,7 +1537,7 @@ valpy_nonzero (PyObject *self) nonzero = !!value_as_long (self_value->value); else if (is_floating_value (self_value->value)) nonzero = !target_float_is_zero - (value_contents (self_value->value).data (), type); + (self_value->value->contents ().data (), type); else /* All other values are True. */ nonzero = 1; @@ -1755,7 +1755,7 @@ valpy_float (PyObject *self) type = check_typedef (type); if (type->code () == TYPE_CODE_FLT && is_floating_value (value)) - d = target_float_to_host_double (value_contents (value).data (), type); + d = target_float_to_host_double (value->contents ().data (), type); else if (type->code () == TYPE_CODE_INT) { /* Note that valpy_long accepts TYPE_CODE_PTR and some |