diff Python/compile.c @ 70436:43ee5ebaa62e

Revert my commit 7ba176c2f558: "Avoid useless "++" at the end of functions Warnings found by the Clang Static Analyzer." Most people prefer ++ at the end of functions.
author Victor Stinner <victor.stinner@haypocalc.com>
date Fri, 27 May 2011 16:46:51 +0200
parents 27359a4e0f8c
children 9b11cc4e2918
line wrap: on
line diff
--- a/Python/compile.c	Fri May 27 09:08:01 2011 -0500
+++ b/Python/compile.c	Fri May 27 16:46:51 2011 +0200
@@ -3744,11 +3744,11 @@
     a->a_lnotab_off += 2;
     if (d_bytecode) {
         *lnotab++ = d_bytecode;
-        *lnotab = d_lineno;
+        *lnotab++ = d_lineno;
     }
     else {      /* First line of a block; def stmt, etc. */
         *lnotab++ = 0;
-        *lnotab = d_lineno;
+        *lnotab++ = d_lineno;
     }
     a->a_lineno = i->i_lineno;
     a->a_lineno_off = a->a_offset;
@@ -3793,7 +3793,7 @@
     if (i->i_hasarg) {
         assert(size == 3 || size == 6);
         *code++ = arg & 0xff;
-        *code = arg >> 8;
+        *code++ = arg >> 8;
     }
     return 1;
 }