From: Maxim Mamontov Date: Mon, 21 Mar 2011 14:30:27 +0000 (+0200) Subject: Fix prefix incremental and decremental operators to postfix X-Git-Tag: 2.407-rc3~126 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/f347aa92f1ff8fbf6335c5cc428e5bc9678a3a36 Fix prefix incremental and decremental operators to postfix --- diff --git a/projects/stargazer/plugins/configuration/sgconfig/configproto.cpp b/projects/stargazer/plugins/configuration/sgconfig/configproto.cpp index f6f97f5f..6c25e099 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/configproto.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/configproto.cpp @@ -157,10 +157,10 @@ while(nonstop) str[8] = 0; len = strlen(str); - n++; + ++n; if (n == requestList.end()) done = 1; - n--; + --n; if (XML_Parse(xmlParser, (*n).c_str(), len, done) == XML_STATUS_ERROR) { @@ -181,7 +181,7 @@ while(nonstop) if (done) return 0; - n++; + ++n; } return 0;