Author: Armin Rigo <[email protected]>
Branch:
Changeset: r66060:120059a2f5f3
Date: 2013-08-10 19:31 +0200
http://bitbucket.org/pypy/pypy/changeset/120059a2f5f3/
Log: Silence two gcc warnings
diff --git a/rpython/memory/gctransform/asmgcroot.py
b/rpython/memory/gctransform/asmgcroot.py
--- a/rpython/memory/gctransform/asmgcroot.py
+++ b/rpython/memory/gctransform/asmgcroot.py
@@ -242,7 +242,7 @@
return llmemory.cast_int_to_adr(rthread.get_ident())
def thread_start():
- value = llop.stack_current(llmemory.Address)
+ value = llmemory.cast_int_to_adr(llop.stack_current(lltype.Signed))
gcdata.aid2stack.setitem(get_aid(), value)
thread_start._always_inline_ = True
@@ -269,7 +269,8 @@
stack_start = gcdata.aid2stack.get(get_aid(), llmemory.NULL)
ll_assert(stack_start != llmemory.NULL,
"current thread not found in gcdata.aid2stack!")
- stack_stop = llop.stack_current(llmemory.Address)
+ stack_stop = llmemory.cast_int_to_adr(
+ llop.stack_current(lltype.Signed))
return (stack_start <= framedata <= stack_stop or
stack_start >= framedata >= stack_stop)
self.belongs_to_current_thread = belongs_to_current_thread
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit