mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Internals: Cleanup some string constructors. No functional change.
This commit is contained in:
+1
-1
@@ -816,7 +816,7 @@ string V3Number::toDecimalS() const {
|
||||
if (isNegative()) {
|
||||
V3Number lhsNoSign = *this;
|
||||
lhsNoSign.opNegate(*this);
|
||||
return string("-") + lhsNoSign.toDecimalU();
|
||||
return std::string{"-"} + lhsNoSign.toDecimalU();
|
||||
} else {
|
||||
return toDecimalU();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user