Skip to content

Commit 03874ae

Browse files
authored
Fix formatting issue of TopicPartition that causes SystemError on Windows (#2141)
1 parent 574e483 commit 03874ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/confluent_kafka/src/confluent_kafka.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ static PyObject *TopicPartition_str0(TopicPartition *self) {
12261226
}
12271227

12281228
ret = cfl_PyUnistr(
1229-
_FromFormat("TopicPartition{topic=%s,partition=%" CFL_PRId32
1229+
_FromFormat("TopicPartition{topic=%s,partition=%d"
12301230
",offset=%s,leader_epoch=%s,error=%s}",
12311231
self->topic, self->partition, offset_str,
12321232
leader_epoch_str, c_errstr ? c_errstr : "None"));

0 commit comments

Comments
 (0)