]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Drop confusing commented out code in pystrtod.c (GH-6072) (GH-9587)
authorVictor Stinner <vstinner@redhat.com>
Wed, 26 Sep 2018 14:44:45 +0000 (07:44 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Sep 2018 14:44:45 +0000 (07:44 -0700)
commit3707bcf02b7574448d7137935995146f6e8ea810
treef58b557d90a7f01e2895db8978a71935be8f6850
parentd45a9613402b686f8afd3dd5b6acf8141f14d711
Drop confusing commented out code in pystrtod.c (GH-6072) (GH-9587)

Fix the following warning:

Python/pystrtod.c: In function 'format_float_short':
Python/pystrtod.c:1007:13: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
             strncpy(p, "ERR", 3);

(cherry picked from commit 9fb84157595a385f15799e5d0729c1e1b0ba9d38)
Python/pystrtod.c