Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
f52e5e6d
Commit
f52e5e6d
authored
Aug 28, 2016
by
Jordan Yelloz
Committed by
Willem
Aug 28, 2016
Browse files
raft_node: parenthesized macro values (#26)
This fixes the build in clang due to a bitwise inversion ambiguity.
parent
16e8d02a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_node.c
View file @
f52e5e6d
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment