diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2020-12-24 21:37:21 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2020-12-24 21:37:21 -0500 |
commit | 7803022d331c87a4d0ec827af3735c0f8b206676 (patch) | |
tree | d6e1889ba546873bb090f92f167bb1058c5241bc | |
parent | 128c2926e1d9bd3d0e530f0aa215d24b33b47552 (diff) |
simplify ROUND macro
-rw-r--r-- | dwl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ #define LENGTH(X) (sizeof X / sizeof X[0]) #define END(A) ((A) + LENGTH(A)) #define TAGMASK ((1 << LENGTH(tags)) - 1) -#define ROUND(X) ((X)>=0?(long)((X)+0.5):(long)((X)-0.5)) +#define ROUND(X) ((int)((X)+0.5)) #ifdef XWAYLAND #define WLR_SURFACE(C) ((C)->type != XDGShell ? (C)->surface.xwayland->surface : (C)->surface.xdg->surface) #else |