various minor style fixes
[libm] / src / math / nextafter.c
index 00209d2..5e53654 100644 (file)
@@ -45,22 +45,22 @@ double nextafter(double x, double y)
        if (hx >= 0) {  /* x > 0 */
                if (hx > hy || (hx == hy && lx > ly)) {  /* x > y, x -= ulp */
                        if (lx == 0)
-                               hx -= 1;
-                       lx -= 1;
+                               hx--;
+                       lx--;
                } else {                                 /* x < y, x += ulp */
-                       lx += 1;
+                       lx++;
                        if (lx == 0)
-                               hx += 1;
+                               hx++;
                }
        } else {        /* x < 0 */
                if (hy >= 0 || hx > hy || (hx == hy && lx > ly)) { /* x < y, x -= ulp */
                        if (lx == 0)
-                               hx -= 1;
-                       lx -= 1;
+                               hx--;
+                       lx--;
                } else {                                 /* x > y, x += ulp */
-                       lx += 1;
+                       lx++;
                        if (lx == 0)
-                               hx += 1;
+                               hx++;
                }
        }
        hy = hx & 0x7ff00000;