mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Typo fixed by Mark Hammond.
This commit is contained in:
parent
1abd82c07d
commit
50fbb15b16
1 changed files with 2 additions and 2 deletions
|
@ -670,7 +670,7 @@ convertsimple1(arg, p_format, p_va)
|
||||||
|
|
||||||
/* Get 's' parameter: the output buffer to use */
|
/* Get 's' parameter: the output buffer to use */
|
||||||
if (*format != 's')
|
if (*format != 's')
|
||||||
return "(unkown parser marker combination)";
|
return "(unknown parser marker combination)";
|
||||||
buffer = (char **)va_arg(*p_va, char **);
|
buffer = (char **)va_arg(*p_va, char **);
|
||||||
format++;
|
format++;
|
||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
|
@ -756,7 +756,7 @@ convertsimple1(arg, p_format, p_va)
|
||||||
after usage
|
after usage
|
||||||
|
|
||||||
*/
|
*/
|
||||||
if (strlen(PyString_AS_STRING(s)) != size)
|
if ((int)strlen(PyString_AS_STRING(s)) != size)
|
||||||
return "(encoded string without "\
|
return "(encoded string without "\
|
||||||
"NULL bytes)";
|
"NULL bytes)";
|
||||||
*buffer = PyMem_NEW(char, size + 1);
|
*buffer = PyMem_NEW(char, size + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue