diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-02-24 11:01:00 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-02-24 11:01:00 +0100 |
commit | 81fa4e81a60ffee742c676ab68deefa15495aab9 (patch) | |
tree | 6fd5a6c9c50c49a5ea914ef603ab3a38ebabc8fc /passes/proc/proc_dlatch.cc | |
parent | ff3f2448b18ce01a7af876816df8f03cf32f3145 (diff) | |
download | yosys-81fa4e81a60ffee742c676ab68deefa15495aab9.tar.gz yosys-81fa4e81a60ffee742c676ab68deefa15495aab9.tar.bz2 yosys-81fa4e81a60ffee742c676ab68deefa15495aab9.zip |
Fixed compilation problems with gcc 4.6.3; use enum instead of const ints.
(original patch by Andrew Becker <andrew.becker@epfl.ch>)
Diffstat (limited to 'passes/proc/proc_dlatch.cc')
-rw-r--r-- | passes/proc/proc_dlatch.cc | 6 |
1 files 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<rule_node_t, 3> rules_db; dict<int, SigBit> rules_sig; |