Skip to content

[3.6] _ssl_: Fix compiler warning (GH-3559) - #3569

Merged
tiran merged 1 commit into
python:3.6from
tiran:backport-5a61559-3.6
Sep 14, 2017
Merged

tiran merged 1 commit into
python:3.6from
tiran:backport-5a61559-3.6

Conversation

@tiran

@tiran tiran commented Sep 14, 2017

Copy link
Copy Markdown
Member

Cast Py_buffer.len (Py_ssize_t, signed) to size_t (unsigned) to
prevent the following warning:

Modules/_ssl.c:3089:21: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare].
(cherry picked from commit 5a61559)

Also backports size check from 5cff637

Cast Py_buffer.len (Py_ssize_t, signed) to size_t (unsigned) to
prevent the following warning:

Modules/_ssl.c:3089:21: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare].
(cherry picked from commit 5a61559)
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.

5 participants