Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r69284:9535a395a13f
Date: 2014-02-23 16:25 +0100
http://bitbucket.org/pypy/pypy/changeset/9535a395a13f/

Log:    Fix a warning in the C code

diff --git a/rpython/rlib/_stacklet_asmgcc.py b/rpython/rlib/_stacklet_asmgcc.py
--- a/rpython/rlib/_stacklet_asmgcc.py
+++ b/rpython/rlib/_stacklet_asmgcc.py
@@ -189,7 +189,7 @@
 pypy_asm_stackwalk2 = rffi.llexternal('pypy_asm_stackwalk',
                                       [FUNCNOARG_P,
                                        ASM_FRAMEDATA_HEAD_PTR],
-                                      _c.handle, sandboxsafe=True,
+                                      lltype.Signed, sandboxsafe=True,
                                       _nowrapper=True)
 
 
@@ -273,6 +273,7 @@
         #
         h = pypy_asm_stackwalk2(llhelper(FUNCNOARG_P, _new_callback),
                                 alternateanchor)
+        h = rffi.cast(_c.handle, h)
         #
         llop.gc_reattach_callback_pieces(lltype.Void, callback_pieces)
         return self.get_result_suspstack(h)
@@ -292,6 +293,7 @@
         #
         h = pypy_asm_stackwalk2(llhelper(FUNCNOARG_P, _switch_callback),
                                 alternateanchor)
+        h = rffi.cast(_c.handle, h)
         #
         llop.gc_reattach_callback_pieces(lltype.Void, callback_pieces)
         if not h:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to