summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-06-26 12:39:33 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-06-26 12:39:33 +0100
commit9e905a460429b1b76ffae96ed14647282af7c4c8 (patch)
tree9c074cce8a3e3a054f3c09274f7bd2bca03e3dc0
parent98d4eb7a840b78c80cae38aa09e2196d23cad383 (diff)
Compiler quietening
Trying to set an enum (int-sized) with top bit set, needs a cast to (signed) int. Broken-by: ae8f9024d8
-rw-r--r--src/src/macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/macros.h b/src/src/macros.h
index 4359e2187..2c7900b83 100644
--- a/src/src/macros.h
+++ b/src/src/macros.h
@@ -339,7 +339,7 @@ platforms, but this ensures bit vectors always work the same way. */
/* This macro is for single-word bit vectors: the debug selector,
and the first word of the log selector. */
-#define BIT(n) (1U << (n))
+#define BIT(n) (1UL << (n))
/* And these are for multi-word vectors. */
#define BITWORD(n) ( (n) / BITWORDSIZE)
@@ -370,7 +370,7 @@ Exim's code assumes in a number of places that the debug_selector is one
word, and this is exposed in the local_scan ABI. The D_v and D_local_scan bit
masks are part of the local_scan API so are #defined in local_scan.h */
-#define DEBUG_BIT(name) Di_##name = IOTA(Di_iota), D_##name = BIT(Di_##name)
+#define DEBUG_BIT(name) Di_##name = IOTA(Di_iota), D_##name = (int)BIT(Di_##name)
enum {
Di_all = -1,