diff options
Diffstat (limited to 'asciifarm/common')
| -rw-r--r-- | asciifarm/common/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarm/common/utils.py b/asciifarm/common/utils.py index 729c85f..b37ec02 100644 --- a/asciifarm/common/utils.py +++ b/asciifarm/common/utils.py @@ -3,7 +3,7 @@ import os def clamp(val, lower, upper): """ val if it's between lower and upper, else the closest of the two""" - return min(max(val, lower), upper) + return max(min(val, upper), lower) def concat(arr): |
