Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b237295

Browse files
author
Tim Peters
committed
Nerge 3.3 into default.
Issue #18942: sys._debugmallocstats() output was damaged on Windows. _PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format code, but MS doesn't support that code. Interpolated PY_FORMAT_SIZE_T in place of the "z".
2 parents db2c681 + eaa3bcc commit b237295

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Projected Release date: 2013-09-08
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #18942: sys._debugmallocstats() output was damaged on Windows.
14+
1315
- Issue #18571: Implementation of the PEP 446: file descriptors and file
1416
handles are now created non-inheritable; add functions
1517
os.get/set_inheritable(), os.get/set_handle_inheritable() and

Objects/obmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ _PyDebugAllocatorStats(FILE *out,
20352035
char buf1[128];
20362036
char buf2[128];
20372037
PyOS_snprintf(buf1, sizeof(buf1),
2038-
"%d %ss * %zd bytes each",
2038+
"%d %ss * %" PY_FORMAT_SIZE_T "d bytes each",
20392039
num_blocks, block_name, sizeof_block);
20402040
PyOS_snprintf(buf2, sizeof(buf2),
20412041
"%48s ", buf1);

0 commit comments

Comments
 (0)