Fixed compilation problems with gcc 4.6.3; use enum instead of const ints.

(original patch by Andrew Becker <andrew.becker@epfl.ch>)
This commit is contained in:
Clifford Wolf 2015-02-24 11:01:00 +01:00
parent ff3f2448b1
commit 81fa4e81a6
1 changed files with 4 additions and 2 deletions

View File

@ -78,8 +78,10 @@ struct proc_dlatch_db_t
}
};
const int true_node = 1;
const int false_node = 2;
enum tf_node_types_t : int {
true_node = 1,
false_node = 2
};
idict<rule_node_t, 3> rules_db;
dict<int, SigBit> rules_sig;