Skip to content

Commit

Permalink
raft_node: parenthesized macro values (#26)
Browse files Browse the repository at this point in the history
This fixes the build in clang due to a bitwise inversion ambiguity.
  • Loading branch information
jyelloz authored and willemt committed Aug 28, 2016
1 parent 16e8d02 commit f52e5e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/raft_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#include "raft.h"

#define RAFT_NODE_VOTED_FOR_ME 1
#define RAFT_NODE_VOTING 1 << 1
#define RAFT_NODE_HAS_SUFFICIENT_LOG 1 << 2
#define RAFT_NODE_VOTED_FOR_ME 1
#define RAFT_NODE_VOTING (1 << 1)
#define RAFT_NODE_HAS_SUFFICIENT_LOG (1 << 2)

typedef struct
{
Expand Down

0 comments on commit f52e5e6

Please sign in to comment.