diff Python/getargs.c @ 12065:b981a7a9b738 legacy-trunk

Typo fixed by Mark Hammond.
author Guido van Rossum <guido@python.org>
date Tue, 28 Mar 2000 02:00:29 +0000
parents d89556c04ef9
children 65f35b73e350
line wrap: on
line diff
--- a/Python/getargs.c	Tue Mar 28 01:58:50 2000 +0000
+++ b/Python/getargs.c	Tue Mar 28 02:00:29 2000 +0000
@@ -670,7 +670,7 @@
 			
 			/* Get 's' parameter: the output buffer to use */
 			if (*format != 's')
-				return "(unkown parser marker combination)";
+				return "(unknown parser marker combination)";
 			buffer = (char **)va_arg(*p_va, char **);
 			format++;
 			if (buffer == NULL)
@@ -756,7 +756,7 @@
 				   after usage
 
 				 */
-				if (strlen(PyString_AS_STRING(s)) != size)
+				if ((int)strlen(PyString_AS_STRING(s)) != size)
 					return "(encoded string without "\
 					       "NULL bytes)";
 				*buffer = PyMem_NEW(char, size + 1);