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

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