Skip to content

[3.6] Drop confusing commented out code in pystrtod.c (GH-6072)#9587

Merged
vstinner merged 1 commit into
python:3.6from
vstinner:pystrtod36
Sep 26, 2018
Merged

[3.6] Drop confusing commented out code in pystrtod.c (GH-6072)#9587
vstinner merged 1 commit into
python:3.6from
vstinner:pystrtod36

Conversation

@vstinner

Copy link
Copy Markdown
Member

(cherry picked from commit 9fb8415)

@vstinner

Copy link
Copy Markdown
Member Author

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);

@vstinner vstinner merged commit 3707bcf into python:3.6 Sep 26, 2018
@vstinner vstinner deleted the pystrtod36 branch September 26, 2018 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants