Skip to content

Commit 173defb

Browse files
committed
The bits of decimal128_t are synthetic
1 parent aec22fc commit 173defb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extra/decimal_printer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ def decimal128_summary(valobj, internal_dict):
4343

4444
try:
4545
val = valobj.GetNonSyntheticValue()
46-
bits = val.GetChildMemberWithName("bits_").GetValueAsUnsigned()
46+
bits = val.GetChildMemberWithName("bits_")
4747
bits_high = bits.GetChildMemberWithName("high").GetValueAsUnsigned()
4848
bits_low = bits.GetChildMemberWithName("low").GetValueAsUnsigned()
4949
combined_bits = (bits_high << 64) | bits_low
5050
return decode_decimal128(combined_bits)
5151

5252
except Exception as e:
53-
return f"<invalid decimal64_t: {e}>"
53+
return f"<invalid decimal128_t: {e}>"
5454

5555
def __lldb_init_module(debugger, internal_dict):
5656
decimal32_pattern = r"^(const )?(boost::decimal::decimal32_t|(\w+::)*decimal32_t)( &| \*)?$"

0 commit comments

Comments
 (0)