]> granicus.if.org Git - python/commitdiff
Revert a change where an expression is not needed now, but could be in the future.
authorBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 23:11:08 +0000 (23:11 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 23:11:08 +0000 (23:11 +0000)
Python/pystrtod.c

index 16dac81ff61ca6d3c8a5478f46fcaf9c1ca5ec77..909e0210ea2c1e5ce05d62fe02d816b9a4269ef1 100644 (file)
@@ -1005,6 +1005,7 @@ format_float_short(double d, char format_code,
                        /* shouldn't get here: Gay's code should always return
                           something starting with a digit, an 'I',  or 'N' */
                        strncpy(p, "ERR", 3);
+                       p += 3;
                        assert(0);
                }
                goto exit;