X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8a14191c0a0ad15bb8f35b49748c75c1e0a8c2f4..4a56a28ac439137ba2b71fcb5952b4e4abd1e2fc:/sbr/m_convert.c diff --git a/sbr/m_convert.c b/sbr/m_convert.c index 3e9433b0..566b02a5 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -1,6 +1,4 @@ - -/* - * m_convert.c -- parse a message range or sequence and set SELECTED +/* m_convert.c -- parse a message range or sequence and set SELECTED * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -204,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 {