summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libs/din/din.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/din/din.c b/src/libs/din/din.c
index 44c6ec8..22e2848 100644
--- a/src/libs/din/din.c
+++ b/src/libs/din/din.c
@@ -92,10 +92,10 @@ static inline float lerp(float a, float b, float t)
static inline float clamp(float x, float lowerlimit, float upperlimit) {
if (x < lowerlimit)
- x = lowerlimit;
+ return lowerlimit;
if (x > upperlimit)
- x = upperlimit;
+ return upperlimit;
return x;
}
© All Rights Reserved