[pypy-commit] pypy gc-incminimark-pinning-improve: translation fix, should be double checked (all tests pass)

groggi noreply at buildbot.pypy.org
Mon Mar 23 16:27:30 CET 2015


Author: Gregor Wegberg <code at gregorwegberg.com>
Branch: gc-incminimark-pinning-improve
Changeset: r76533:58d1159cd44c
Date: 2015-03-23 16:24 +0100
http://bitbucket.org/pypy/pypy/changeset/58d1159cd44c/

Log:	translation fix, should be double checked (all tests pass)

diff --git a/rpython/rlib/rzlib.py b/rpython/rlib/rzlib.py
--- a/rpython/rlib/rzlib.py
+++ b/rpython/rlib/rzlib.py
@@ -365,6 +365,7 @@
     """Common code for compress() and decompress().
     """
     # Prepare the input buffer for the stream
+    assert data is not None # XXX seems to be sane assumption, however not for sure
     with rffi.scoped_nonmovingbuffer(data) as inbuf:
         stream.c_next_in = rffi.cast(Bytefp, inbuf)
         rffi.setintfield(stream, 'c_avail_in', len(data))


More information about the pypy-commit mailing list