Skip to content

Conversation

@corona10
Copy link
Member

@corona10corona10 commented Apr 29, 2020

@corona10corona10 requested a review from vstinnerApril 29, 2020 17:23
@corona10
Copy link
MemberAuthor

@vstinner Please take a look

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the updates!

@corona10corona10 merged commit 84724dd into python:masterApr 29, 2020
@corona10corona10 deleted the bpo-1635741-stat branch April 29, 2020 18:20
@vstinner
Copy link
Member

The new code emits a compiler warning:

./Modules/_stat.c: In function ‘stat_exec’: ./Modules/_stat.c:566:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < Py_ARRAY_LENGTH(st_constants); i++){^ 

Py_ARRAY_LENGTH() should be casted to int.

cc @corona10

@vstinner
Copy link
Member

Py_ARRAY_LENGTH() should be casted to int.

After I saw the warning 5 times in a row, I decided to propose a PR for the trivial fix :-)
#19822

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@corona10@vstinner@the-knights-who-say-ni@bedevere-bot