@@ -230,25 +230,25 @@ resolve_module_errcode(module_state *state, int errcode, int64_t qid,
230
230
break ;
231
231
case ERR_QUEUE_NOT_FOUND :
232
232
exctype = state -> QueueNotFoundError ;
233
- msg = PyUnicode_FromFormat ("queue %" PRId64 " not found" , qid );
233
+ msg = PyUnicode_FromFormat ("queue %" PRId64 " not found" , ( long long ) qid );
234
234
break ;
235
235
case ERR_QUEUE_EMPTY :
236
236
if (ensure_external_exc_types (state ) < 0 ) {
237
237
return -1 ;
238
238
}
239
239
exctype = state -> QueueEmpty ;
240
- msg = PyUnicode_FromFormat ("queue %" PRId64 " is empty" , qid );
240
+ msg = PyUnicode_FromFormat ("queue %" PRId64 " is empty" , ( long long ) qid );
241
241
break ;
242
242
case ERR_QUEUE_FULL :
243
243
if (ensure_external_exc_types (state ) < 0 ) {
244
244
return -1 ;
245
245
}
246
246
exctype = state -> QueueFull ;
247
- msg = PyUnicode_FromFormat ("queue %" PRId64 " is full" , qid );
247
+ msg = PyUnicode_FromFormat ("queue %" PRId64 " is full" , ( long long ) qid );
248
248
break ;
249
249
case ERR_QUEUE_NEVER_BOUND :
250
250
exctype = state -> QueueError ;
251
- msg = PyUnicode_FromFormat ("queue %" PRId64 " never bound" , qid );
251
+ msg = PyUnicode_FromFormat ("queue %" PRId64 " never bound" , ( long long ) qid );
252
252
break ;
253
253
default :
254
254
PyErr_Format (PyExc_ValueError ,
@@ -750,7 +750,7 @@ _queuerefs_clear(_queueref *head)
750
750
751
751
#ifdef Py_DEBUG
752
752
int64_t qid = ref -> qid ;
753
- fprintf (stderr , "queue %" PRId64 " still exists\n" , qid );
753
+ fprintf (stderr , "queue %" PRId64 " still exists\n" , ( long long ) qid );
754
754
#endif
755
755
_queue * queue = ref -> queue ;
756
756
GLOBAL_FREE (ref );
@@ -759,7 +759,7 @@ _queuerefs_clear(_queueref *head)
759
759
#ifdef Py_DEBUG
760
760
if (queue -> items .count > 0 ) {
761
761
fprintf (stderr , "queue %" PRId64 " still holds %" PRId64 " items\n" ,
762
- qid , queue -> items .count );
762
+ ( long long ) qid , ( long long ) queue -> items .count );
763
763
}
764
764
#endif
765
765
_queue_free (queue );
0 commit comments