FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-9566: Silence warning in gcmodule.c caused by pydtrace.h by segevfiner · Pull Request #2852 · python/cpython · GitHub

Repository navigation

bpo-9566: Silence warning in gcmodule.c caused by pydtrace.h - #2852

Closed
segevfiner wants to merge 1 commit into
python:masterfrom
segevfiner:bpo-9566-dtrace-warning
Closed

segevfiner wants to merge 1 commit into
python:masterfrom
segevfiner:bpo-9566-dtrace-warning

Conversation

segevfiner commented Jul 24, 2017 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor
..\Modules\gcmodule.c(1085): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data

Caused by DTrace stubs being defined as taking int. The real one takes a long (Include/pydtrace.d:12), which is probably 64-bit on architectures where DTrace is available but it is 32-bit on Windows x64. It really needs a Py_ssize_t but I'm not familiar enough with DTrace to change pydtrace.d. I think we can simply change the stub to a larger integer type without it causing issues... And maybe if someone really finds an issue he can also change pydtrace.d in the future.

https://bugs.python.org/issue9566

Copy link
Copy Markdown
Contributor

We shouldn't just change the definition here. Either we need to change the type in pydtrace.d or just pass an int into the trace function in gcmodule.c.

vstinner commented Mar 6, 2019

Copy link
Copy Markdown
Member

I merged PR #11010 instead, sorry!

vstinner closed this Mar 6, 2019
segevfiner deleted the bpo-9566-dtrace-warning branch March 6, 2019 16:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL