]> granicus.if.org Git - python/commitdiff
Remove an unneeded variable increment.
authorBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:16:09 +0000 (20:16 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:16:09 +0000 (20:16 +0000)
Found using Clang's static analyzer.

Objects/floatobject.c

index 3f76e91ff2fb8b07350dcb8a8a267f77bce95e31..ab7cfeb751e98666221b9c09fa819523fa469f2f 100644 (file)
@@ -2478,7 +2478,6 @@ _PyFloat_Pack8(double x, unsigned char *p, int le)
 
                /* Eighth byte */
                *p = flo & 0xFF;
-               p += incr;
 
                /* Done */
                return 0;