From cd3011520fe2c442970e1f0d6c6847b42039a3e0 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 12 Oct 2018 12:30:30 +0200 Subject: [PATCH] Debugger: Fix qfloat16 dumper for LLDB 6.0 on Linux Needs some hint that floats are involved. Change-Id: Ie6871ce3b6bb7aaff27e6c763a6002a6d0a90d70 Reviewed-by: Christian Stenger --- share/qtcreator/debugger/qttypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 752ab14021f..dd339042bf0 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -2795,7 +2795,7 @@ def qdump__qfloat16(d, value): elif exp == 0b11111: res = ('-inf' if sign else 'inf') if fraction == 0 else 'nan' else: - res = (-1)**sign * (1 + fraction / 2**10) * 2**(exp - 15) + res = (-1)**sign * (1 + 1. * fraction / 2**10) * 2**(exp - 15) d.putValue(res) d.putNumChild(1) d.putPlainChildren(value)