Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win32 compiler warning in PyBytes_Concat #65641

Closed
zware opened this issue May 5, 2014 · 5 comments
Closed

Win32 compiler warning in PyBytes_Concat #65641

zware opened this issue May 5, 2014 · 5 comments
Assignees
Labels
build The build process and cross-build OS-windows type-bug An unexpected behavior, bug, or error

Comments

@zware
Copy link
Member

zware commented May 5, 2014

BPO 21442
Nosy @pitrou, @vstinner, @tjguk, @zware

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/zware'
closed_at = <Date 2014-05-06.16:45:01.044>
created_at = <Date 2014-05-05.19:16:52.443>
labels = ['type-bug', 'OS-windows', 'build']
title = 'Win32 compiler warning in PyBytes_Concat'
updated_at = <Date 2014-05-06.16:45:01.043>
user = 'https://github.com/zware'

bugs.python.org fields:

activity = <Date 2014-05-06.16:45:01.043>
actor = 'zach.ware'
assignee = 'zach.ware'
closed = True
closed_date = <Date 2014-05-06.16:45:01.044>
closer = 'zach.ware'
components = ['Build', 'Windows']
creation = <Date 2014-05-05.19:16:52.443>
creator = 'zach.ware'
dependencies = []
files = []
hgrepos = []
issue_num = 21442
keywords = []
message_count = 5.0
messages = ['217942', '217980', '217992', '217993', '217995']
nosy_count = 6.0
nosy_names = ['pitrou', 'vstinner', 'tim.golden', 'nikratio', 'python-dev', 'zach.ware']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue21442'
versions = ['Python 3.5']

@zware
Copy link
Member Author

zware commented May 5, 2014

Issue bpo-21377 introduced a compiler warning on Windows:

..\Objects\bytesobject.c(2824): warning C4018: '>' : signed/unsigned mismatch [P:\ath\to\cpython\PCbuild\pythoncore.vcxproj]

@zware zware added build The build process and cross-build OS-windows type-bug An unexpected behavior, bug, or error labels May 5, 2014
@zware
Copy link
Member Author

zware commented May 6, 2014

Declaring oldsize as Py_ssize_t instead of size_t at Objects/bytesobject.c:2812 takes care of the warning, but I'm not comfortable saying that's a correct change.

@tjguk
Copy link
Member

tjguk commented May 6, 2014

Well PyBytes_GET_SIZE is documented as returning a Py_ssize_t so I'd say it's perfectly valid.

@python-dev
Copy link
Mannequin

python-dev mannequin commented May 6, 2014

New changeset 6234f4caba57 by Zachary Ware in branch 'default':
Issue bpo-21442: Fix MSVC compiler warning introduced by bpo-21377.
http://hg.python.org/cpython/rev/6234f4caba57

@zware
Copy link
Member Author

zware commented May 6, 2014

I should have looked a little harder, thanks Tim!

@zware zware closed this as completed May 6, 2014
@zware zware self-assigned this May 6, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants