Skip to content

New warning: "comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]" #115391

@sobolevn

Description

@sobolevn

Bug report

It happens after 7861dfd#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726aR1138

Objects/longobject.c:1138:20: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'unsigned long' [-Wsign-compare]
        else if (n <= sizeof(cv.b)) {
                 ~ ^  ~~~~~~~~~~~~

For some reason it is reported on another line on GitHub:

Снимок экрана 2024-02-13 в 10 06 54

I have a PR ready.

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions