]> granicus.if.org Git - python/commit
Blocked revisions 76740 via svnmerge
authorMark Dickinson <dickinsm@gmail.com>
Thu, 10 Dec 2009 10:39:49 +0000 (10:39 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Thu, 10 Dec 2009 10:39:49 +0000 (10:39 +0000)
commit887febd4533e40e7632a31d70db492e7717a4749
treef4f29b4d0072f9fc6fdb7379894e26b29afb9f05
parent61f6a1bead1a04078d91c60bc3d7a2bcf828f0e5
Blocked revisions 76740 via svnmerge

........
  r76740 | mark.dickinson | 2009-12-10 10:36:32 +0000 (Thu, 10 Dec 2009) | 8 lines

  Replace the size check for PyMem_MALLOC and PyMem_REALLOC with an almost
  equivalent[*] check that doesn't produce compiler warnings about a 'x < 0'
  check on an unsigned type.

  [*] it's equivalent for inputs of type size_t or Py_ssize_t, or any smaller
  unsigned or signed integer type.
........