From 81fa4e81a60ffee742c676ab68deefa15495aab9 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 24 Feb 2015 11:01:00 +0100 Subject: [PATCH] Fixed compilation problems with gcc 4.6.3; use enum instead of const ints. (original patch by Andrew Becker ) --- passes/proc/proc_dlatch.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/passes/proc/proc_dlatch.cc b/passes/proc/proc_dlatch.cc index 228f518c5..e1bbab545 100644 --- a/passes/proc/proc_dlatch.cc +++ b/passes/proc/proc_dlatch.cc @@ -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 rules_db; dict rules_sig; -- 2.30.2