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
Fix compiler warnings "comparison between signed and unsigned integers" #66352
Comments
The issue bpo-22110 enabled more compiler warnings. Attached patch tries to fix most of them on Linux. |
Victor, your patch fixes most of the pesky warnings. However you left one warning left (at least in Mac OS X 10.9.4). Objects/unicodeobject.c:4831:43: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare] Maybe we can fix it by doing this: |
Yes, my patch is uncomplete. Don't hesitate to post a new patch or |
New changeset 9b84ff16edd4 by Victor Stinner in branch 'default': New changeset a0b38f4eb79e by Victor Stinner in branch 'default': |
I created a specific issue for PyThread_create_key() of Python/thread_pthread.h: issue bpo-22206. |
I created another more specific issue: bpo-22207, "Test for integer overflow on Py_ssize_t: explicitly cast to size_t". |
New changeset e831a98b3f43 by Victor Stinner in branch 'default': |
Ok, I fixed many warnings in this issue. I will open new issues for other warnings. |
I'm not sure about _tracemalloc.c. May be make MAX_NFRAME an int would be simpler? Other changes LGTM. |
New changeset a318a5ab91fe by Victor Stinner in branch 'default': |
Ok, I agree, I changed it. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: