Skip to content

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

Merged
vstinner merged 1 commit into
python:2.7from
vstinner:pystrtod27
Sep 26, 2018
Merged

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

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 911231e into python:2.7 Sep 26, 2018
@vstinner vstinner deleted the pystrtod27 branch September 26, 2018 15:18
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