diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-31 21:03:01 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-31 21:03:01 (GMT) |
commit | 87298c4a237f2735d232f6e50f299c3a4dc686ec (patch) | |
tree | 3e410a7ede14c7a3e0211d4fe25e42fbaca22bf1 /Modules/operator.c | |
parent | 4d80766796ab1f768a8e2f04bde2e9c81e01b8eb (diff) | |
download | cpython-87298c4a237f2735d232f6e50f299c3a4dc686ec.zip cpython-87298c4a237f2735d232f6e50f299c3a4dc686ec.tar.gz cpython-87298c4a237f2735d232f6e50f299c3a4dc686ec.tar.bz2 |
No declarations in the middle of a block (fixes compile under Windows)
Diffstat (limited to 'Modules/operator.c')
-rw-r--r-- | Modules/operator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/operator.c b/Modules/operator.c index 48bdae0..866ec3a 100644 --- a/Modules/operator.c +++ b/Modules/operator.c @@ -428,15 +428,15 @@ attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) } else { /* make it a tuple of non-dotted attrnames */ PyObject *attr_chain = PyTuple_New(dot_count + 1); PyObject *attr_chain_item; + Py_ssize_t unibuff_from = 0; + Py_ssize_t unibuff_till = 0; + Py_ssize_t attr_chain_idx = 0; if (attr_chain == NULL) { Py_DECREF(attr); return NULL; } - Py_ssize_t unibuff_from = 0; - Py_ssize_t unibuff_till = 0; - Py_ssize_t attr_chain_idx = 0; for (; dot_count > 0; --dot_count) { while (item_buffer[unibuff_till] != (Py_UNICODE)'.') { ++unibuff_till; |