fix building without pymalloc (closes #17228)
authorBenjamin Peterson <benjamin@python.org>
Wed, 20 Feb 2013 21:54:30 +0000 (16:54 -0500)
committerBenjamin Peterson <benjamin@python.org>
Wed, 20 Feb 2013 21:54:30 +0000 (16:54 -0500)
Misc/NEWS
Objects/obmalloc.c

index d03d7c638ae92ccae8e8d1fc8b7e282257d9cd20..2c88b61201df9a8113c506a0a19719543d01adaf 100644 (file)
--- 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.
 
index 483847cad25ddc458831434f2e23f2af68ea7d54..38ebc3782d345eb12dae746f15df377a52d1a8dc 100644 (file)
@@ -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;