From: Maxim Mamontov Date: Mon, 4 Apr 2011 19:16:28 +0000 (+0300) Subject: Replace postfix decrement operator with prefix X-Git-Tag: 2.407-rc3~83 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/2533d87d8779ba2520161c9d89bbc2d4e8b3c114?ds=sidebyside Replace postfix decrement operator with prefix --- diff --git a/projects/sgconf/parser.cpp b/projects/sgconf/parser.cpp index 20dd0614..990a2971 100644 --- a/projects/sgconf/parser.cpp +++ b/projects/sgconf/parser.cpp @@ -107,7 +107,7 @@ while (n != ans->end()) if (++n == ans->end()) done = 1; - n--; + --n; if (XML_Parse(parser, n->c_str(), len, done) == XML_STATUS_ERROR) { diff --git a/projects/sgconf_xml/parser.cpp b/projects/sgconf_xml/parser.cpp index 12a1c7a2..919a8c19 100644 --- a/projects/sgconf_xml/parser.cpp +++ b/projects/sgconf_xml/parser.cpp @@ -162,7 +162,7 @@ while (n != ans->end()) if (++n == ans->end()) done = 1; - n--; + --n; if (XML_Parse(parser, n->c_str(), len, done) == XML_STATUS_ERROR) {