[Python-checkins] cpython: Fix a compiler warning: use unsigned int type instead of enum PyUnicode_Kind to

victor.stinner python-checkins at python.org
Tue May 7 23:51:36 CEST 2013


http://hg.python.org/cpython/rev/4ce2a4e75ad3
changeset:   83675:4ce2a4e75ad3
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue May 07 23:50:03 2013 +0200
summary:
  Fix a compiler warning: use unsigned int type instead of enum PyUnicode_Kind to
compare two Unicode kinds

files:
  Python/formatter_unicode.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -556,7 +556,7 @@
 {
     /* 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;
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list