From 8e830a06643384d0c33432207585e5b0702d18a5 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 20 Feb 2013 16:54:30 -0500 Subject: [PATCH] fix building without pymalloc (closes #17228) --- Misc/NEWS | 2 ++ Objects/obmalloc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index d03d7c638ae..2c88b61201d 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 483847cad25..38ebc3782d3 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;