Internals: C++11 for bool. No functional change.

This commit is contained in:
Wilson Snyder
2021-07-11 10:42:32 -04:00
parent 687dd440a9
commit c7499133b2
5 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -631,7 +631,7 @@ void EmitCSyms::emitSymImp() {
emitSymImpPreamble();
if (v3Global.opt.savable()) {
for (int de = 0; de < 2; ++de) {
for (const bool& de : {false, true}) {
const string classname = de ? "VerilatedDeserialize" : "VerilatedSerialize";
const string funcname = de ? "__Vdeserialize" : "__Vserialize";
const string op = de ? ">>" : "<<";