Commit f52e5e6d authored by Jordan Yelloz's avatar Jordan Yelloz Committed by Willem
Browse files

raft_node: parenthesized macro values (#26)

This fixes the build in clang due to a bitwise inversion ambiguity.
parent 16e8d02a
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include "raft.h" #include "raft.h"
#define RAFT_NODE_VOTED_FOR_ME 1 #define RAFT_NODE_VOTED_FOR_ME 1
#define RAFT_NODE_VOTING 1 << 1 #define RAFT_NODE_VOTING (1 << 1)
#define RAFT_NODE_HAS_SUFFICIENT_LOG 1 << 2 #define RAFT_NODE_HAS_SUFFICIENT_LOG (1 << 2)
typedef struct typedef struct
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment