[pypy-svn] pypy default: Bah. This should fix the issue on 64-bit machines --- caused by

arigo commits-noreply at bitbucket.org
Wed Jan 26 17:17:57 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41359:522cd3af7488
Date: 2011-01-26 17:15 +0100
http://bitbucket.org/pypy/pypy/changeset/522cd3af7488/

Log:	Bah. This should fix the issue on 64-bit machines --- caused by
	PyObject_Malloc() being implicitly declared to return an 'int'.

	We should review and fix the C compiler's warnings...

diff --git a/pypy/translator/c/src/dtoa.c b/pypy/translator/c/src/dtoa.c
--- a/pypy/translator/c/src/dtoa.c
+++ b/pypy/translator/c/src/dtoa.c
@@ -127,6 +127,7 @@
 #include <errno.h>
 #include <assert.h>
 #include <stdio.h>
+#include "src/allocator.h"
 #define PyMem_Malloc PyObject_Malloc
 #define PyMem_Free PyObject_Free
 #define _Py_dg_strtod _PyPy_dg_strtod


More information about the Pypy-commit mailing list