diff Python/compile.c @ 70397:7ba176c2f558

Avoid useless "++" at the end of functions Warnings found by the Clang Static Analyzer.
author Victor Stinner <victor.stinner@haypocalc.com>
date Thu, 26 May 2011 13:53:47 +0200
parents b39270c6b8d1
children 27359a4e0f8c
line wrap: on
line diff
--- a/Python/compile.c	Thu May 26 13:47:08 2011 +0200
+++ b/Python/compile.c	Thu May 26 13:53:47 2011 +0200
@@ -3747,11 +3747,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;
@@ -3796,7 +3796,7 @@
     if (i->i_hasarg) {
         assert(size == 3 || size == 6);
         *code++ = arg & 0xff;
-        *code++ = arg >> 8;
+        *code = arg >> 8;
     }
     return 1;
 }