Skip to content

Commit c559030

Browse files
committed
Match function signature to the others
1 parent 9a4b6bc commit c559030

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

extra/decimal_printer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def decimal128_summary(valobj, internal_dict):
4747
bits_high = bits.GetChildMemberWithName("high").GetValueAsUnsigned()
4848
bits_low = bits.GetChildMemberWithName("low").GetValueAsUnsigned()
4949
combined_bits = (bits_high << 64) | bits_low
50-
return decode_decimal128(combined_bits, bits_high)
50+
return decode_decimal128(combined_bits)
5151

5252
except Exception as e:
5353
return f"<invalid decimal64_t: {e}>"

extra/detail/decode_decimal128.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# Distributed under the Boost Software License, Version 1.0.
33
# https://www.boost.org/LICENSE_1_0.txt
44

5-
def decode_decimal128(bits, bits_high):
5+
def decode_decimal128(bits):
66

7+
bits_high = bits >> 64
78
d128_not_11_significand_mask = (562949953421311 << 64) | 18446744073709551615
89
d128_11_significand_mask = (140737488355327 << 64) | 18446744073709551615
910

0 commit comments

Comments
 (0)