Fix MSVC++ compile warning
This commit is contained in:
parent
4aa3e72509
commit
c7ed73e249
|
|
@ -4403,8 +4403,8 @@ public:
|
||||||
case ATOOCT: return "atooct";
|
case ATOOCT: return "atooct";
|
||||||
case ATOBIN: return "atobin";
|
case ATOBIN: return "atobin";
|
||||||
case ATOREAL: return "atoreal";
|
case ATOREAL: return "atoreal";
|
||||||
default: V3ERROR_NA;
|
|
||||||
}
|
}
|
||||||
|
V3ERROR_NA_RETURN("");
|
||||||
}
|
}
|
||||||
string emitVerilog() override { return "%l." + name() + "()"; }
|
string emitVerilog() override { return "%l." + name() + "()"; }
|
||||||
string emitC() override {
|
string emitC() override {
|
||||||
|
|
@ -4414,8 +4414,8 @@ public:
|
||||||
case ATOOCT: return "VL_ATOI_N(%li, 8)";
|
case ATOOCT: return "VL_ATOI_N(%li, 8)";
|
||||||
case ATOBIN: return "VL_ATOI_N(%li, 2)";
|
case ATOBIN: return "VL_ATOI_N(%li, 2)";
|
||||||
case ATOREAL: return "std::atof(%li.c_str())";
|
case ATOREAL: return "std::atof(%li.c_str())";
|
||||||
default: V3ERROR_NA;
|
|
||||||
}
|
}
|
||||||
|
V3ERROR_NA_RETURN("");
|
||||||
}
|
}
|
||||||
bool cleanOut() const override { return true; }
|
bool cleanOut() const override { return true; }
|
||||||
bool cleanLhs() const override { return true; }
|
bool cleanLhs() const override { return true; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue