]> git.stg.codes - stg.git/commitdiff
Replace postfix decrement operator with prefix
authorMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 19:16:28 +0000 (22:16 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 19:16:28 +0000 (22:16 +0300)
projects/sgconf/parser.cpp
projects/sgconf_xml/parser.cpp

index 20dd06145b4331731b2678ddba43ea07d8db1735..990a2971525e24c03a1150161804a002b27cb403 100644 (file)
@@ -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)
         {
index 12a1c7a2d4bb171948167762548047a23e3dd747..919a8c19dab273125d3de0fffbef9f2663232c26 100644 (file)
@@ -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)
         {