Unverified Commit 799754ab authored by Ozan Tezcan's avatar Ozan Tezcan Committed by GitHub
Browse files

Use int instead of short for entry type (#153)

In C, enum constants are `int` but currently, `type` variable in entry
struct is `short`. 

Changed it to `int` to provide type-safety. 
parent 56a0bb79
...@@ -95,7 +95,7 @@ typedef struct raft_entry ...@@ -95,7 +95,7 @@ typedef struct raft_entry
raft_entry_id_t id; raft_entry_id_t id;
/** type of entry */ /** type of entry */
short type; int type;
/** number of references */ /** number of references */
unsigned short refs; unsigned short refs;
......
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