[pypy-commit] pypy default: Aargh, missing header meant that the "char *" was truncated to 32 bits

arigo pypy.commits at gmail.com
Mon Sep 26 05:15:14 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r87391:4e94cb209019
Date: 2016-09-26 10:24 +0100
http://bitbucket.org/pypy/pypy/changeset/4e94cb209019/

Log:	Aargh, missing header meant that the "char *" was truncated to 32
	bits (and *usually* it would fit in 32 bits, but of course, not
	always)

diff --git a/pypy/module/sys/initpath.py b/pypy/module/sys/initpath.py
--- a/pypy/module/sys/initpath.py
+++ b/pypy/module/sys/initpath.py
@@ -241,7 +241,8 @@
 }
 """
 
-_eci = ExternalCompilationInfo(separate_module_sources=[_source_code])
+_eci = ExternalCompilationInfo(separate_module_sources=[_source_code],
+    post_include_bits=['RPY_EXPORTED char *_pypy_init_home(void);'])
 
 pypy_init_home = rffi.llexternal("_pypy_init_home", [], rffi.CCHARP,
                                  _nowrapper=True, compilation_info=_eci)


More information about the pypy-commit mailing list