]> granicus.if.org Git - python/commitdiff
Whitespace only changes
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 25 Feb 2007 15:53:36 +0000 (15:53 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 25 Feb 2007 15:53:36 +0000 (15:53 +0000)
Objects/stringobject.c

index 1f318057f84d9cd51c1983847dc95dd0f3d96a03..416457d5a59b277f4b6e9d95bd647719988c0c88 100644 (file)
@@ -1131,8 +1131,7 @@ string_richcompare(PyStringObject *a, PyStringObject *b, int op)
                   much time, since Py_NE is rarely used.  */
                if (a->ob_size == b->ob_size
                    && (a->ob_sval[0] == b->ob_sval[0]
-                       && memcmp(a->ob_sval, b->ob_sval,
-                                 a->ob_size) == 0)) {
+                       && memcmp(a->ob_sval, b->ob_sval, a->ob_size) == 0)) {
                        result = Py_True;
                } else {
                        result = Py_False;
@@ -1145,7 +1144,7 @@ string_richcompare(PyStringObject *a, PyStringObject *b, int op)
                c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval);
                if (c==0)
                        c = memcmp(a->ob_sval, b->ob_sval, min_len);
-       }else
+       } else
                c = 0;
        if (c == 0)
                c = (len_a < len_b) ? -1 : (len_a > len_b) ? 1 : 0;