Skip to content

Warning: "'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type 'int64_t'" #116386

Description

@sobolevn

Bug report

Снимок экрана 2024-03-06 в 00 54 29

Happens in Modules/_xxinterpqueuesmodule.c, spotted on #116371

Linked PRs

Activity

  1. sobolevn commented on Mar 5, 2024

    @sobolevn
    MemberAuthor

    Also happen locally:

    ./Modules/_xxinterpqueuesmodule.c:762:22: warning: format specifies type 'long long' but the argument has type 'Py_ssize_t' (aka 'long') [-Wformat]
                    qid, queue->items.count);
                         ^~~~~~~~~~~~~~~~~~
    

    I think that I know how to fix it.

  2. self-assigned this
    on Mar 5, 2024
  3. added 2 commits that reference this issue on Mar 5, 2024
  4. ericsnowcurrently commented on Mar 6, 2024

    @ericsnowcurrently
    Member

    FTR, I fixed this in gh-116369. However, in that PR I used PRId64 one too many times and a new warning showed up. (See #116369 (comment).) @sobolevn's PR fixes that.

  5. added a commit that references this issue on Mar 7, 2024
  6. added a commit that references this issue on Mar 25, 2024
  7. added a commit that references this issue on Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions