You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2008/03/17 20:22:37 UTC

svn commit: r638036 - /apr/apr-iconv/trunk/lib/iconv_uc.c

Author: wrowe
Date: Mon Mar 17 12:22:28 2008
New Revision: 638036

URL: http://svn.apache.org/viewvc?rev=638036&view=rev
Log:
Resolve ambiguous/nonsense post-increment.

Reported by: Sebastian Gottschalk <seppi seppig.de>

Modified:
    apr/apr-iconv/trunk/lib/iconv_uc.c

Modified: apr/apr-iconv/trunk/lib/iconv_uc.c
URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/lib/iconv_uc.c?rev=638036&r1=638035&r2=638036&view=diff
==============================================================================
--- apr/apr-iconv/trunk/lib/iconv_uc.c (original)
+++ apr/apr-iconv/trunk/lib/iconv_uc.c Mon Mar 17 12:22:28 2008
@@ -111,7 +111,7 @@
 			size = ICONV_CES_CONVERT_FROM_UCS(ic->to, ic->missing,
 			    outbuf, outbytesleft);
 			if (size)
-				*res ++;
+				(*res)++;
 		}
 		if (!size) {		 /* No space to write to */
 			*inbytesleft += *inbuf - ptr;