summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ector/software/ector_software_gradient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ector/software/ector_software_gradient.c b/src/lib/ector/software/ector_software_gradient.c
index bdbf70380c..c9493ae020 100644
--- a/src/lib/ector/software/ector_software_gradient.c
+++ b/src/lib/ector/software/ector_software_gradient.c
@@ -409,7 +409,7 @@ fetch_linear_gradient(uint32_t *buffer, Span_Data *data, int y, int x, int lengt
409 else 409 else
410 { 410 {
411 const int vmax = INT_MAX >> (FIXPT_BITS + 1); 411 const int vmax = INT_MAX >> (FIXPT_BITS + 1);
412 const int vmin = -vmin; 412 const int vmin = -vmax;
413 float v = t + (inc *length); 413 float v = t + (inc *length);
414 414
415 if ((v < (float)vmax) && (v > (float)(vmin))) 415 if ((v < (float)vmax) && (v > (float)(vmin)))