summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-02-20 21:54:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-02-20 21:54:30 (GMT)
commit8e830a06643384d0c33432207585e5b0702d18a5 (patch)
treee26b648425023eb04437ea7800ad496d29365072
parentfffc479f15636d4f6afb297f4f8fb0016cd162a6 (diff)
downloadcpython-8e830a06643384d0c33432207585e5b0702d18a5.zip
cpython-8e830a06643384d0c33432207585e5b0702d18a5.tar.gz
cpython-8e830a06643384d0c33432207585e5b0702d18a5.tar.bz2
fix building without pymalloc (closes #17228)
-rw-r--r--Misc/NEWS2
-rw-r--r--Objects/obmalloc.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d03d7c6..2c88b61 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -853,6 +853,8 @@ Tests
Build
-----
+- Issue #17228: Fix building without pymalloc.
+
- Issue #17086: Backport the patches from the 3.3 branch to cross-build
the package.
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 483847c..38ebc37 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -1713,7 +1713,7 @@ printone(const char* msg, size_t value)
k = 3;
do {
size_t nextvalue = value / 10;
- uint digit = (uint)(value - nextvalue * 10);
+ unsigned int digit = (unsigned int)(value - nextvalue * 10);
value = nextvalue;
buf[i--] = (char)(digit + '0');
--k;