From ad4ec36365f3428ea5cba722d3b8478f30ab9209 Mon Sep 17 00:00:00 2001 From: SillyPill Date: Sun, 24 Oct 2021 17:34:11 +0530 Subject: [PATCH] Cleanup --- river-shifttags.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/river-shifttags.c b/river-shifttags.c index 1f75650..2d74e1d 100644 --- a/river-shifttags.c +++ b/river-shifttags.c @@ -7,9 +7,6 @@ #include "river-status-unstable-v1.h" #include "river-control-unstable-v1.h" -#define INT_SIZE sizeof (int) // Size of int in bytes -#define INT_BITS INT_SIZE * 8 - 1 // Size of int in bits - 1 - int ret = EXIT_SUCCESS; struct wl_display *wl_display = NULL; @@ -44,7 +41,7 @@ rotate ( int num_tags) { - rotations %= (int)INT_BITS; + rotations %= num_tags; const unsigned int mask = ~(~(0U) << num_tags) << start_tag; unsigned int to_rotate = (tagmask & mask) >> start_tag;