From 1cd2ed7b4c7f1c41091badc4f0ecb164725db0d5 Mon Sep 17 00:00:00 2001 From: Justin Schiff Date: Sat, 15 May 2021 06:43:13 -0700 Subject: [PATCH] Use CLAMP macro instead --- xed/xed-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xed/xed-utils.c b/xed/xed-utils.c index 802b14a..70d8599 100644 --- a/xed/xed-utils.c +++ b/xed/xed-utils.c @@ -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); } /*