diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-05-07 21:50:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-05-07 21:50:03 (GMT) |
commit | 22c103b3cc057ed6f059045a12cff243b01f20fe (patch) | |
tree | c5fc48a06021002da9d05cfdb36056b3b5905691 /Python/formatter_unicode.c | |
parent | f2b9a340ef143099726fb642951410e4ad793c7f (diff) | |
download | cpython-22c103b3cc057ed6f059045a12cff243b01f20fe.zip cpython-22c103b3cc057ed6f059045a12cff243b01f20fe.tar.gz cpython-22c103b3cc057ed6f059045a12cff243b01f20fe.tar.bz2 |
Fix a compiler warning: use unsigned int type instead of enum PyUnicode_Kind to
compare two Unicode kinds
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 009bc5f..548b49a 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; |