GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). by serhiy-storchaka · Pull Request #12353 · python/cpython Conversation
|
|
|
||
| /* copy keyword args using kwtuple to drive process */ | ||
| for (i = Py_MAX(nargs, posonly); i < maxargs; i++) { | ||
| for (i = Py_MAX((int)nargs, posonly); i < maxargs; i++) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that this code is safe is nargs > INT_MAX. (int)(INT_MAX+1) gives 0, no?
Maybe write something like:
i = (nargs < INT_MAX) ? (int)nargs : INT_MAX;
i = Py_MAX(i, posonly);
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.