shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1bafbf3e131773bc5f3d8f6506a2859f462ca081
parent 1711c263a3ade228049564b53f848fe0ed7066f5
Author: Lucas de Sena <lucas@seninha.org>
Date:   Sun,  9 Jul 2023 08:10:18 -0300

fix warnings

Clang was warning about "comparison of integers of different signs".
config.resizetime and config.movetime are positive, so i'm casting
them to unsigned.

Diffstat:
Mxevents.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xevents.c b/xevents.c @@ -1008,7 +1008,7 @@ mouseresize(int type, void *obj, int xroot, int yroot, enum Octant o) *nh += dy; } } - if (ev.xmotion.time - lasttime > config.resizetime) { + if (ev.xmotion.time - lasttime > (unsigned)config.resizetime) { if (type == FLOAT_MENU) { menumoveresize(menu); menudecorate(menu, 0); @@ -1070,7 +1070,7 @@ mousemove(Window win, int type, void *p, int xroot, int yroot, enum Octant o) break; case MotionNotify: moved = 1; - if (ev.xmotion.time - lasttime > config.movetime) { + if (ev.xmotion.time - lasttime > (unsigned)config.movetime) { x = ev.xmotion.x_root - xroot; y = ev.xmotion.y_root - yroot; if (type == FLOAT_MENU) { @@ -1176,7 +1176,7 @@ mouseretile(struct Container *c, struct Column *cdiv, struct Row *rdiv, int xpre break; } } - if (ev.xmotion.time - lasttime > config.resizetime) { + if (ev.xmotion.time - lasttime > (unsigned)config.resizetime) { containercalccols(c); containermoveresize(c, 0); containerdecorate(c, cdiv, rdiv, 0, 0);