Skip to content

Commit

Permalink
Use PRId64 to fix a compiler warning on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Mar 5, 2024
1 parent e7ba6e9 commit df545d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_xxinterpqueuesmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,15 +750,15 @@ _queuerefs_clear(_queueref *head)

#ifdef Py_DEBUG
int64_t qid = ref->qid;
fprintf(stderr, "queue %ld still exists\n", qid);
fprintf(stderr, "queue %" PRId64 " still exists\n", qid);
#endif
_queue *queue = ref->queue;
GLOBAL_FREE(ref);

_queue_kill_and_wait(queue);
#ifdef Py_DEBUG
if (queue->items.count > 0) {
fprintf(stderr, "queue %ld still holds %ld items\n",
fprintf(stderr, "queue %" PRId64 " still holds %" PRId64 " items\n",
qid, queue->items.count);
}
#endif
Expand Down

0 comments on commit df545d9

Please sign in to comment.