projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff3f244
)
Fixed compilation problems with gcc 4.6.3; use enum instead of const ints.
author
Clifford Wolf
<clifford@clifford.at>
Tue, 24 Feb 2015 10:01:00 +0000
(11:01 +0100)
committer
Clifford 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
patch
|
blob
|
history
diff --git
a/passes/proc/proc_dlatch.cc
b/passes/proc/proc_dlatch.cc
index 228f518c57e2cd3d2952f13c8bd613d5b3c98d6b..e1bbab54595fb14e3de417ccf0f0de91116564c6 100644
(file)
--- 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;