comparison 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
comparison
equal deleted inserted replaced
70396:1e73b90e4d52 70397:7ba176c2f558
3745 PyBytes_AS_STRING(a->a_lnotab) + a->a_lnotab_off; 3745 PyBytes_AS_STRING(a->a_lnotab) + a->a_lnotab_off;
3746 3746
3747 a->a_lnotab_off += 2; 3747 a->a_lnotab_off += 2;
3748 if (d_bytecode) { 3748 if (d_bytecode) {
3749 *lnotab++ = d_bytecode; 3749 *lnotab++ = d_bytecode;
3750 *lnotab++ = d_lineno; 3750 *lnotab = d_lineno;
3751 } 3751 }
3752 else { /* First line of a block; def stmt, etc. */ 3752 else { /* First line of a block; def stmt, etc. */
3753 *lnotab++ = 0; 3753 *lnotab++ = 0;
3754 *lnotab++ = d_lineno; 3754 *lnotab = d_lineno;
3755 } 3755 }
3756 a->a_lineno = i->i_lineno; 3756 a->a_lineno = i->i_lineno;
3757 a->a_lineno_off = a->a_offset; 3757 a->a_lineno_off = a->a_offset;
3758 return 1; 3758 return 1;
3759 } 3759 }
3794 } 3794 }
3795 *code++ = i->i_opcode; 3795 *code++ = i->i_opcode;
3796 if (i->i_hasarg) { 3796 if (i->i_hasarg) {
3797 assert(size == 3 || size == 6); 3797 assert(size == 3 || size == 6);
3798 *code++ = arg & 0xff; 3798 *code++ = arg & 0xff;
3799 *code++ = arg >> 8; 3799 *code = arg >> 8;
3800 } 3800 }
3801 return 1; 3801 return 1;
3802 } 3802 }
3803 3803
3804 static void 3804 static void