diff options
author | Jeff Epler <jepler@gmail.com> | 2025-08-15 08:01:12 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-10-03 00:45:40 +1000 |
commit | c91e091ad72e3e15ca8981bd953f64714a5afb3e (patch) | |
tree | 376d44e41f33a57b7dae0b007286a1c1619f73ab /tests/bench/loop_count-4-while_down_gt.py | |
parent | ab0080602578ce789d784aaaf50511313db70bc7 (diff) |
py/runtime: Fix printing of failed allocation amounts.
On LP64 and LLP64 systems, size_t is bigger than unsigned. Printing the
failed allocation using the new SIZE_FMT macro allows the correct failed
allocation size to be shown.
Example where this affects the failed allocation message (on x86_64
coverage build):
>>> "a" * (1 << 54)
Before, this would print the size as 1. Now it prints it as
18014398509481985 (2**54 + 1).
Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'tests/bench/loop_count-4-while_down_gt.py')
0 files changed, 0 insertions, 0 deletions