Use 'max' macro in clip_to_bounds

* src/lisp.h (clip_to_bounds): Use 'max' macro.
This commit is contained in:
Stefan Kangas 2025-01-20 14:05:37 +01:00
parent ad51b3b391
commit b568ff418c

View file

@ -1361,7 +1361,7 @@ EQ (Lisp_Object x, Lisp_Object y)
INLINE intmax_t
clip_to_bounds (intmax_t lower, intmax_t num, intmax_t upper)
{
return num < lower ? lower : min (num, upper);
return max (lower, min (num, upper));
}
/* Construct a Lisp_Object from a value or address. */