mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: C++11 for bool. No functional change.
This commit is contained in:
+1
-1
@@ -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 ? ">>" : "<<";
|
||||
|
||||
Reference in New Issue
Block a user