[pypy-dev] Internship and bug report

Amaury Forgeot d'Arc amauryfa at gmail.com
Wed Jun 20 19:02:55 CEST 2012


2012/6/20 Léonard de Haro <leonard.de.haro at ens.fr>

> When translating the two JITing interpreters that I have (one purely
> recursive, the second one tail-recursive in CPS), I get this warning:
>
> [platform:WARNING] rpython_lltypesystem_rffi.c: In function
> ‘pypy_g__PyPy_dg_dtoa__Float_**Signed_Signed_arrayPtr_arra’:
> [platform:WARNING] rpython_lltypesystem_rffi.c:**534: warning: passing
> argument 4 of ‘_PyPy_dg_dtoa’ from incompatible pointer type
> [platform:WARNING] rpython_lltypesystem_rffi.c:**534: warning: passing
> argument 5 of ‘_PyPy_dg_dtoa’ from incompatible pointer type
>

This is mostly harmless. It happens because the C function _PyPy_dg_dtoa is
declared with int* parameters,
and generated code calls it with long* values.
But this only happens when int and long are of the same size (= on 32bit
platforms),
so nothing bad can happen here.

-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20120620/b2d6797c/attachment.html>


More information about the pypy-dev mailing list