forked from qt-creator/qt-creator
Debugger: Fix qfloat16 dumper for LLDB 6.0 on Linux
Needs some hint that floats are involved. Change-Id: Ie6871ce3b6bb7aaff27e6c763a6002a6d0a90d70 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user