diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-02-02 09:16:18 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-02-02 09:16:18 +0100 |
commit | d6592d5b996b1b5af1af701e32cc74694cd491ef (patch) | |
tree | a466ecb43a886cf46640578f0b2ecb9418337e84 | |
parent | 74657f88a18cb0c7908a34ed6630d97700a1e9d0 (diff) | |
download | yosys-d6592d5b996b1b5af1af701e32cc74694cd491ef.tar.gz yosys-d6592d5b996b1b5af1af701e32cc74694cd491ef.tar.bz2 yosys-d6592d5b996b1b5af1af701e32cc74694cd491ef.zip |
Use alphanumerical order instead of idstring idx in opt_clean compare_signals()
-rw-r--r-- | passes/opt/opt_clean.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/opt/opt_clean.cc b/passes/opt/opt_clean.cc index 49615d9d6..175e8e112 100644 --- a/passes/opt/opt_clean.cc +++ b/passes/opt/opt_clean.cc @@ -177,7 +177,7 @@ bool compare_signals(RTLIL::SigBit &s1, RTLIL::SigBit &s2, SigPool ®s, SigPoo if (attrs1 != attrs2) return attrs2 > attrs1; - return w2->name < w1->name; + return strcmp(w2->name.c_str(), w1->name.c_str()) < 0; } bool check_public_name(RTLIL::IdString id) |