summaryrefslogtreecommitdiffstats
path: root/Programs
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-05-06 16:56:51 (GMT)
committerBrett Cannon <54418+brettcannon@users.noreply.github.com>2019-05-06 16:56:50 (GMT)
commit1a2252ed39bc1b71cdaa935d7726d82909af93ab (patch)
tree7a816ef20b914628f61cce377a9b245933ff6ec9 /Programs
parentae2c32f32b61f3b141ba4b0b1ad71781d2f9a1a1 (diff)
downloadcpython-1a2252ed39bc1b71cdaa935d7726d82909af93ab.zip
cpython-1a2252ed39bc1b71cdaa935d7726d82909af93ab.tar.gz
cpython-1a2252ed39bc1b71cdaa935d7726d82909af93ab.tar.bz2
bpo-36594: Fix incorrect use of %p in format strings (GH-12769)
In addition, fix some other minor violations of C99.
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_freeze_importlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Programs/_freeze_importlib.c b/Programs/_freeze_importlib.c
index 0818012..4b2ed70 100644
--- a/Programs/_freeze_importlib.c
+++ b/Programs/_freeze_importlib.c
@@ -127,7 +127,7 @@ main(int argc, char *argv[])
size_t i, end = Py_MIN(n + 16, data_size);
fprintf(outfile, " ");
for (i = n; i < end; i++) {
- fprintf(outfile, "%d,", (unsigned int) data[i]);
+ fprintf(outfile, "%u,", (unsigned int) data[i]);
}
fprintf(outfile, "\n");
}