Skip to content

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

Merged
vstinner merged 1 commit intopython:3.7from
vstinner:pystrtod37
Sep 26, 2018
Merged

[3.7] Drop confusing commented out code in pystrtod.c (GH-6072)#9586
vstinner merged 1 commit intopython:3.7from
vstinner:pystrtod37

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 b54fc15 into python:3.7 Sep 26, 2018
@vstinner vstinner deleted the pystrtod37 branch September 26, 2018 14:45
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