]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
cjkcodecs: Fix compiler warning (GH-10651)
authorVictor Stinner <vstinner@redhat.com>
Thu, 22 Nov 2018 09:25:46 +0000 (10:25 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Nov 2018 09:25:46 +0000 (10:25 +0100)
commitcdbcb773f5db24e23fa90e644ec620d54bd08127
tree885a3fe8db7b8a5b4992d9f922e3aad48e6c2cfd
parenta42de742e7c20eeb64699b5785543fea65b2e8d3
cjkcodecs: Fix compiler warning (GH-10651)

Fixed the following compiler warning in multibytecodec.c:

    warning C4244: '=': conversion from 'Py_ssize_t'
    to 'unsigned char', possible loss of data

Cast Py_ssize_t to unsigned char: the maximum value is checked
on the previous line.
Modules/cjkcodecs/multibytecodec.c