Use CLAMP macro instead

This commit is contained in:
Justin Schiff 2021-05-15 06:43:13 -07:00 committed by Michael Webster
parent a48dab6ef5
commit 1cd2ed7b4c
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ gint
xed_string_to_clamped_gint (const gchar *text)
{
long int long_line = strtol (text, NULL, 10);
return MAX(MIN(long_line, INT_MAX), INT_MIN);
return CLAMP (long_line, INT_MIN, INT_MAX);
}
/*