[PATCH] Explicit cast of CEIL macro result

From: Eric Pruitt <eric.pruitt_AT_gmail.com>
Date: Wed, 18 Jun 2014 09:03:11 -0500

---
 st.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 2cf9a26..858746d 100644
--- a/st.c
+++ b/st.c
_AT_@ -77,7 +77,7 @@ char *argv0;
 #define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || (a).bg != (b).bg)
 #define IS_SET(flag) ((term.mode & (flag)) != 0)
 #define TIMEDIFF(t1, t2) ((t1.tv_sec-t2.tv_sec)*1000 + (t1.tv_usec-t2.tv_usec)/1000)
-#define CEIL(x) (((x) != (int) (x)) ? (x) + 1 : (x))
+#define CEIL(x) ((int) (((x) != (int) (x)) ? (x) + 1 : (x)))
 #define MODBIT(x, set, bit) ((set) ? ((x) |= (bit)) : ((x) &= ~(bit)))
 
 #define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b))
-- 
1.7.10.4
--UlVJffcvxoiEqYs2--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 18 2014 - 16:12:06 CEST