all repos — fluxbox @ 41a206072051637e7ac49d89259b94885e703acd

custom fork of the fluxbox windowmanager

Fix integer overflow

I forgot this piece in 779618e45d4571bb6a4866aa2e398780f4b4da5d.
Mathias Gumz akira at fluxbox dot org
commit

41a206072051637e7ac49d89259b94885e703acd

parent

a4a4bca745fc9e5417243be404c77486fcdfe336

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/FbTk/TextureRender.ccsrc/FbTk/TextureRender.cc

@@ -513,7 +513,7 @@ // 'a' and 'b'. if the point is on the same side for both 'a' and

// 'b' (a.cross() is equal to b.cross()) then use the x_gradient, // otherwise use y_gradient - if ((a.cross(x, y) * b.cross(x, b.y + y)) > 0) { + if (sign(a.cross(x, y)) * sign(b.cross(x, b.y + y)) > 0) { rgba[i] = x_gradient[x]; } else { rgba[i] = y_gradient[y];