mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Fix typo in function name
This commit is contained in:
parent
4c69da2879
commit
e73cbe7a4e
1 changed files with 3 additions and 3 deletions
|
@ -291,7 +291,7 @@ as necessary to represent the exponent.
|
||||||
/* Ensure that any exponent, if present, is at least MIN_EXPONENT_DIGITS
|
/* Ensure that any exponent, if present, is at least MIN_EXPONENT_DIGITS
|
||||||
in length. */
|
in length. */
|
||||||
Py_LOCAL_INLINE(void)
|
Py_LOCAL_INLINE(void)
|
||||||
ensure_minumim_exponent_length(char* buffer, size_t buf_size)
|
ensure_minimum_exponent_length(char* buffer, size_t buf_size)
|
||||||
{
|
{
|
||||||
char *p = strpbrk(buffer, "eE");
|
char *p = strpbrk(buffer, "eE");
|
||||||
if (p && (*(p + 1) == '-' || *(p + 1) == '+')) {
|
if (p && (*(p + 1) == '-' || *(p + 1) == '+')) {
|
||||||
|
@ -498,7 +498,7 @@ PyOS_ascii_formatd(char *buffer,
|
||||||
for the extra zeros. Also, if there are more than
|
for the extra zeros. Also, if there are more than
|
||||||
MIN_EXPONENT_DIGITS, remove as many zeros as possible until we get
|
MIN_EXPONENT_DIGITS, remove as many zeros as possible until we get
|
||||||
back to MIN_EXPONENT_DIGITS */
|
back to MIN_EXPONENT_DIGITS */
|
||||||
ensure_minumim_exponent_length(buffer, buf_size);
|
ensure_minimum_exponent_length(buffer, buf_size);
|
||||||
|
|
||||||
/* If format_char is 'Z', make sure we have at least one character
|
/* If format_char is 'Z', make sure we have at least one character
|
||||||
after the decimal point (and make sure we have a decimal point). */
|
after the decimal point (and make sure we have a decimal point). */
|
||||||
|
@ -601,7 +601,7 @@ _PyOS_double_to_string(char *buf, size_t buf_len, double val,
|
||||||
enough for the extra zeros. Also, if there are more than
|
enough for the extra zeros. Also, if there are more than
|
||||||
MIN_EXPONENT_DIGITS, remove as many zeros as possible until
|
MIN_EXPONENT_DIGITS, remove as many zeros as possible until
|
||||||
we get back to MIN_EXPONENT_DIGITS */
|
we get back to MIN_EXPONENT_DIGITS */
|
||||||
ensure_minumim_exponent_length(buf, buf_len);
|
ensure_minimum_exponent_length(buf, buf_len);
|
||||||
|
|
||||||
/* Possibly make sure we have at least one character after the
|
/* Possibly make sure we have at least one character after the
|
||||||
decimal point (and make sure we have a decimal point). */
|
decimal point (and make sure we have a decimal point). */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue