Author: Armin Rigo <[email protected]>
Branch: mmap-for-arenas
Changeset: r93224:40ad6dbda37b
Date: 2017-11-30 18:18 +0100
http://bitbucket.org/pypy/pypy/changeset/40ad6dbda37b/
Log: translation fix
diff --git a/rpython/rtyper/lltypesystem/llarena.py
b/rpython/rtyper/lltypesystem/llarena.py
--- a/rpython/rtyper/lltypesystem/llarena.py
+++ b/rpython/rtyper/lltypesystem/llarena.py
@@ -558,6 +558,7 @@
def llimpl_arena_munmap(arena_addr, nbytes):
from rpython.rlib import rmmap
+ assert nbytes >= 0
rmmap.c_munmap_safe(rffi.cast(rmmap.PTR, arena_addr), nbytes)
register_external(arena_munmap, [llmemory.Address, int], None,
'll_arena.arena_munmap',
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit