We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d00df commit 654171aCopy full SHA for 654171a
src/utils/msc_tree.h
@@ -38,7 +38,7 @@ typedef struct TreeRoot TreeRoot;
38
39
#define TREE_CHECK(x, y) ((x) & (y))
40
#define MASK_BITS(x) ((x + 1) * 8)
41
-#define SHIFT_LEFT_MASK(x) ((-1) << (x))
+#define SHIFT_LEFT_MASK(x) ((int)(~0U << (x)))
42
#define SHIFT_RIGHT_MASK(x,y) ((x) >> (y))
43
44
#define NETMASK_256 0x100
0 commit comments