X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..4a56a28ac439137ba2b71fcb5952b4e4abd1e2fc:/sbr/m_convert.c?ds=sidebyside diff --git a/sbr/m_convert.c b/sbr/m_convert.c index e4062680..566b02a5 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -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 {