##// END OF EJS Templates
cext: move braces for control statements to same line...
Gregory Szorc -
r34438:ce26a138 default
parent child Browse files
Show More
@@ -96,14 +96,12 b' static PyObject *b85decode(PyObject *sel'
96 96 dst = PyBytes_AsString(out);
97 97
98 98 i = 0;
99 while (i < len)
100 {
99 while (i < len) {
101 100 acc = 0;
102 101 cap = len - i - 1;
103 102 if (cap > 4)
104 103 cap = 4;
105 for (j = 0; j < cap; i++, j++)
106 {
104 for (j = 0; j < cap; i++, j++) {
107 105 c = b85dec[(int)*text++] - 1;
108 106 if (c < 0)
109 107 return PyErr_Format(
@@ -112,8 +110,7 b' static PyObject *b85decode(PyObject *sel'
112 110 (int)i);
113 111 acc = acc * 85 + c;
114 112 }
115 if (i++ < len)
116 {
113 if (i++ < len) {
117 114 c = b85dec[(int)*text++] - 1;
118 115 if (c < 0)
119 116 return PyErr_Format(
@@ -136,8 +133,7 b' static PyObject *b85decode(PyObject *sel'
136 133 acc *= 85;
137 134 if (cap && cap < 4)
138 135 acc += 0xffffff >> (cap - 1) * 8;
139 for (j = 0; j < cap; j++)
140 {
136 for (j = 0; j < cap; j++) {
141 137 acc = (acc << 8) | (acc >> 24);
142 138 *dst++ = acc;
143 139 }
@@ -445,8 +445,7 b' static Py_ssize_t add_roots_get_min(inde'
445 445 iter = PyObject_GetIter(list);
446 446 if (iter == NULL)
447 447 return -2;
448 while ((iter_item = PyIter_Next(iter)))
449 {
448 while ((iter_item = PyIter_Next(iter))) {
450 449 iter_item_long = PyInt_AS_LONG(iter_item);
451 450 Py_DECREF(iter_item);
452 451 if (iter_item_long < min_idx)
General Comments 0
You need to be logged in to leave comments. Login now