Fixed compilation problems with gcc 4.6.3; use enum instead of const ints.
authorClifford Wolf <clifford@clifford.at>
Tue, 24 Feb 2015 10:01:00 +0000 (11:01 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 24 Feb 2015 10:01:00 +0000 (11:01 +0100)
(original patch by Andrew Becker <andrew.becker@epfl.ch>)

passes/proc/proc_dlatch.cc

index 228f518c57e2cd3d2952f13c8bd613d5b3c98d6b..e1bbab54595fb14e3de417ccf0f0de91116564c6 100644 (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;