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

gh-126433: Fix compiler warnings on 32-bit Windows #126444

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 5, 2024

@vstinner
Copy link
Member Author

vstinner commented Nov 5, 2024

I didn't fix these two warnings on purpose, I will fix them separately:

C:\victor\python\main\Modules_hacl\Lib_Memzero0.c(39,27): warning C4244: 'function': conversion from 'uint64_t' to 'SIZE_T', possible loss of data [C:\victor\python\main\PCbuild\pythoncore.vcxproj]
C:\victor\python\main\Modules_interpchannelsmodule.c(2096,30): warning C4244: '=': conversion from 'int64_t' to 'Py_ssize_t', possible loss of data [C:\victor\python\main\PCbuild\pythoncore.vcxproj]

@vstinner
Copy link
Member Author

vstinner commented Nov 5, 2024

cc @sobolevn

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@vstinner vstinner merged commit 0b67ce9 into python:main Nov 5, 2024
45 checks passed
@vstinner vstinner deleted the fix_win_warns branch November 5, 2024 15:05
@vstinner vstinner added the needs backport to 3.13 bugs and security fixes label Nov 14, 2024
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 0b67ce930a56c4ffd597b1a658ddcbacfb40e798 3.13

@bedevere-app
Copy link

bedevere-app bot commented Nov 14, 2024

GH-126827 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 14, 2024
vstinner added a commit to vstinner/cpython that referenced this pull request Nov 14, 2024
@vstinner
Copy link
Member Author

Python 3.12 doesn't have these warnings.

vstinner added a commit that referenced this pull request Nov 14, 2024
…126827)

gh-126433: Fix compiler warnings on 32-bit Windows (#126444)

(cherry picked from commit 0b67ce9)
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.

2 participants