From 22c103b3cc057ed6f059045a12cff243b01f20fe Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 7 May 2013 23:50:03 +0200 Subject: [PATCH] Fix a compiler warning: use unsigned int type instead of enum PyUnicode_Kind to compare two Unicode kinds --- Python/formatter_unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 009bc5fd03..548b49aa3e 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -556,7 +556,7 @@ fill_number(_PyUnicodeWriter *writer, const NumberFieldWidths *spec, { /* Used to keep track of digits, decimal, and remainder. */ Py_ssize_t d_pos = d_start; - const enum PyUnicode_Kind kind = writer->kind; + const unsigned int kind = writer->kind; const void *data = writer->data; Py_ssize_t r; -- 2.40.0