Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50fbb15

Browse files
committed
Typo fixed by Mark Hammond.
1 parent 1abd82c commit 50fbb15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/getargs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ convertsimple1(arg, p_format, p_va)
670670

671671
/* Get 's' parameter: the output buffer to use */
672672
if (*format != 's')
673-
return "(unkown parser marker combination)";
673+
return "(unknown parser marker combination)";
674674
buffer = (char **)va_arg(*p_va, char **);
675675
format++;
676676
if (buffer == NULL)
@@ -756,7 +756,7 @@ convertsimple1(arg, p_format, p_va)
756756
after usage
757757
758758
*/
759-
if (strlen(PyString_AS_STRING(s)) != size)
759+
if ((int)strlen(PyString_AS_STRING(s)) != size)
760760
return "(encoded string without "\
761761
"NULL bytes)";
762762
*buffer = PyMem_NEW(char, size + 1);

0 commit comments

Comments
 (0)