Skip to content

cjkcodecs: Fix compiler warning#10651

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

cjkcodecs: Fix compiler warning#10651
vstinner merged 1 commit intopython:masterfrom
vstinner:cjkcodecs

Conversation

@vstinner
Copy link
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants