Skip to content

Commit f5d72a0

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/formatter_unicode.c

Lines changed: 1 addition & 1 deletion
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)