~ensoft-opensource/+junk/cpython

« back to all changes in this revision

Viewing changes to Modules/zlibmodule.c

  • Committer: Martin Morrison
  • Date: 2013-05-08 04:00:22 UTC
  • Revision ID: mm@ensoft.co.uk-20130508040022-p36d9m60dlfc7vg2
Latest sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
573
573
            Py_ssize_t old_size = PyBytes_GET_SIZE(self->unused_data);
574
574
            Py_ssize_t new_size;
575
575
            PyObject *new_data;
576
 
            if (self->zst.avail_in > PY_SSIZE_T_MAX - old_size) {
 
576
            if ((Py_ssize_t)self->zst.avail_in > PY_SSIZE_T_MAX - old_size) {
577
577
                PyErr_NoMemory();
578
578
                return -1;
579
579
            }