Skip to content

Commit 22c103b

Browse files
committed
Fix a compiler warning: use unsigned int type instead of enum PyUnicode_Kind to
compare two Unicode kinds
1 parent f2b9a34 commit 22c103b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/formatter_unicode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ fill_number(_PyUnicodeWriter *writer, const NumberFieldWidths *spec,
556556
{
557557
/* Used to keep track of digits, decimal, and remainder. */
558558
Py_ssize_t d_pos = d_start;
559-
const enum PyUnicode_Kind kind = writer->kind;
559+
const unsigned int kind = writer->kind;
560560
const void *data = writer->data;
561561
Py_ssize_t r;
562562

0 commit comments

Comments
 (0)