Use CLAMP macro instead
This commit is contained in:
parent
a48dab6ef5
commit
1cd2ed7b4c
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue