Skip to content

cjkcodecs: Fix compiler warning - #10651

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:cjkcodecs
Nov 22, 2018
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:cjkcodecs

Conversation

@vstinner

Copy link
Copy Markdown
Member

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants