Visitar URL original
[3.7] Drop confusing commented out code in pystrtod.c (GH-6072) by vstinner · Pull Request #9586 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223163121/https://github.com/python/cpython/pull/9586
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Sep 26, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 26, 2018

(cherry picked from commit 9fb8415)

@vstinner
Copy link
Member Author

vstinner commented Sep 26, 2018

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 Sep 26, 2018
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.

None yet

4 participants