Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-26219: Fix compiler warning in _PyCode_InitOpcache()#13997

Merged
vstinner merged 1 commit intopython:masterpython/cpython:masterfrom
vstinner:code_warnCopy head branch name to clipboard
Jun 12, 2019
Merged

bpo-26219: Fix compiler warning in _PyCode_InitOpcache()#13997
vstinner merged 1 commit intopython:masterpython/cpython:masterfrom
vstinner:code_warnCopy head branch name to clipboard

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 12, 2019

Fix MSVC warning:

objects\codeobject.c(285): warning C4244: '=':
conversion from 'Py_ssize_t' to 'unsigned char',
possible loss of data

https://bugs.python.org/issue26219

Fix MSVC warning:

    objects\codeobject.c(285): warning C4244: '=':
    conversion from 'Py_ssize_t' to 'unsigned char',
    possible loss of data
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@vstinner vstinner deleted the code_warn branch June 12, 2019 02:41
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 12, 2019
)

Fix MSVC warning:

    objects\codeobject.c(285): warning C4244: '=':
    conversion from 'Py_ssize_t' to 'unsigned char',
    possible loss of data
(cherry picked from commit 376ce98)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@bedevere-bot
Copy link

GH-14000 is a backport of this pull request to the 3.8 branch.

vstinner added a commit that referenced this pull request Jun 12, 2019
…H-14000)

Fix MSVC warning:

    objects\codeobject.c(285): warning C4244: '=':
    conversion from 'Py_ssize_t' to 'unsigned char',
    possible loss of data
(cherry picked from commit 376ce98)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
)

Fix MSVC warning:

    objects\codeobject.c(285): warning C4244: '=':
    conversion from 'Py_ssize_t' to 'unsigned char',
    possible loss of data
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
)

Fix MSVC warning:

    objects\codeobject.c(285): warning C4244: '=':
    conversion from 'Py_ssize_t' to 'unsigned char',
    possible loss of data
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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.