Skip to content

Commit

Permalink
Initialize _dest in rule to fix a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenSchou committed Apr 24, 2020
1 parent 85fee25 commit ee06f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdaaal/PDAFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ namespace pdaaal {
struct rule_t_<WT, std::enable_if_t<!is_weighted<WT>>> {
op_t _op = POP;
T _pre;
size_t _dest;
size_t _dest = std::numeric_limits<size_t>::max();
T _op_label;
};

template <typename WT>
struct rule_t_<WT, std::enable_if_t<is_weighted<WT>>> {
op_t _op = POP;
T _pre;
size_t _dest;
size_t _dest = std::numeric_limits<size_t>::max();
T _op_label;
WT _weight;
};
Expand Down

0 comments on commit ee06f88

Please sign in to comment.