diff Python/bltinmodule.c @ 27790:b650a54a76fd legacy-trunk

Squashed compiler wng about signed/unsigned clash in comparison.
author Tim Peters <tim.peters@gmail.com>
date Mon, 10 Feb 2003 14:48:29 +0000
parents f34446fa216e
children 2042e2051d97
line wrap: on
line diff
--- a/Python/bltinmodule.c	Mon Feb 10 14:19:14 2003 +0000
+++ b/Python/bltinmodule.c	Mon Feb 10 14:48:29 2003 +0000
@@ -362,7 +362,7 @@
 #endif
 	if (PyObject_AsReadBuffer(cmd, (const void **)&str, &length))
 		return NULL;
-	if (length != strlen(str)) {
+	if ((size_t)length != strlen(str)) {
 		PyErr_SetString(PyExc_TypeError,
 				"expected string without null bytes");
 		return NULL;