From cac86fb1b4e23602ebf3b84465b687b6301736e3 Mon Sep 17 00:00:00 2001 From: couriersud Date: Tue, 29 Oct 2019 19:55:53 +0100 Subject: netlist: code maintenance. (nw) - Removed code no longer used - Add noexcept where appropriate - split pparser.[c|h] into ppreprocessor and ptokenizer - smaller optimizations, e.g. use of std::size_t - fix lint warnings --- src/lib/netlist/plib/pfmtlog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/netlist/plib/pfmtlog.cpp') diff --git a/src/lib/netlist/plib/pfmtlog.cpp b/src/lib/netlist/plib/pfmtlog.cpp index 250ead34cb3..2158d10cb2d 100644 --- a/src/lib/netlist/plib/pfmtlog.cpp +++ b/src/lib/netlist/plib/pfmtlog.cpp @@ -108,14 +108,14 @@ pfmt::rtype pfmt::setfmt(std::stringstream &strm, char32_t cfmt_spec) auto pdot(fmt.find('.')); if (pdot==0) - strm << std::setprecision(pstonum(fmt.substr(1))); + strm << std::setprecision(pstonum_ne_def(fmt.substr(1), 6)); else if (pdot != pstring::npos) { - strm << std::setprecision(pstonum(fmt.substr(pdot + 1))); - r.width = pstonum(left(fmt,pdot)); + strm << std::setprecision(pstonum_ne_def(fmt.substr(pdot + 1), 6)); + r.width = pstonum_ne_def(left(fmt,pdot), 0); } else if (fmt != "") - r.width = pstonum(fmt); + r.width = pstonum_ne_def(fmt, 0); switch (r.pend) { -- cgit v1.2.3-70-g09d2