aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-value.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python-value.c')
-rw-r--r--gdb/python/python-value.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c
index d4353f7..5304caf 100644
--- a/gdb/python/python-value.c
+++ b/gdb/python/python-value.c
@@ -573,7 +573,8 @@ valpy_nonzero (PyObject *self)
return value_as_double (self_value->value) != 0;
else if (TYPE_CODE (type) == TYPE_CODE_DECFLOAT)
return !decimal_is_zero (value_contents (self_value->value),
- TYPE_LENGTH (type));
+ TYPE_LENGTH (type),
+ gdbarch_byte_order (get_type_arch (type)));
else
{
PyErr_SetString (PyExc_TypeError, _("Attempted truth testing on invalid "