]> diplodocus.org Git - nmh/blobdiff - sbr/m_convert.c
dtimezone(): Explain abs(3) is undefined on INT_MIN.
[nmh] / sbr / m_convert.c
index e40626805192b7347329655da087af726d888976..566b02a5286fdf185f32f7611f46fb024a781d71 100644 (file)
@@ -202,8 +202,8 @@ single:
             * limits simply reallocate the folder so it's within range.
             */
            if (first < mp->lowoff || first > mp->hghoff)
-               mp = folder_realloc(mp, first < mp->lowoff ? first : mp->lowoff,
-                                   first > mp->hghoff ? first : mp->hghoff);
+                mp = folder_realloc(mp, min(first, mp->lowoff),
+                                    max(first, mp->hghoff));
 
            set_select_empty (mp, first);
        } else {