diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-11-07 15:21:03 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-11-07 15:21:03 +0100 |
commit | 546e8b5fe7063caf0140d753d8c20614cbeae723 (patch) | |
tree | 2a877507c2e9b098b3def2ad0bcd68a632ee5630 /kernel/rtlil.h | |
parent | 461594bb83a3fd908bb6580763cf7f7aa37ef6a7 (diff) | |
download | yosys-546e8b5fe7063caf0140d753d8c20614cbeae723.tar.gz yosys-546e8b5fe7063caf0140d753d8c20614cbeae723.tar.bz2 yosys-546e8b5fe7063caf0140d753d8c20614cbeae723.zip |
Improved TopoSort determinism
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 8a4d348be..0bb1e4e84 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -216,7 +216,7 @@ namespace RTLIL // set has an influence on the algorithm. template<typename T> struct compare_ptr_by_name { - bool operator()(const T *a, const T *b) { + bool operator()(const T *a, const T *b) const { return (a == nullptr || b == nullptr) ? (a < b) : (a->name < b->name); } }; |