summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-02 16:24:43 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-02 17:01:12 +0900
commit7718b4c0eaae1785047d4729ad68ac9eb7e1d40a (patch)
tree685bb9d7c9712605c9d252186df5a47918b9d822 /src/lib/ector
parentc3d8a1d9f45fe990595bad9f3ed6ea81308754e6 (diff)
ector - fix coveirty fix - vmin is -vmax not -vmin
Diffstat (limited to 'src/lib/ector')
-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)))