diff Python/traceback.c @ 5317:c72c7e1930b3 legacy-trunk

Keep gcc -Wall and Microsoft VC happy.
author Guido van Rossum <guido@python.org>
date Fri, 11 Apr 1997 20:37:35 +0000
parents 658815230546
children 424922afc1bb
line wrap: on
line diff
--- a/Python/traceback.c	Fri Apr 11 20:27:03 1997 +0000
+++ b/Python/traceback.c	Fri Apr 11 20:37:35 1997 +0000
@@ -196,7 +196,7 @@
 					if (len + 1 + taillen >= MAXPATHLEN)
 						continue; /* Too long */
 					strcpy(namebuf, getstringvalue(v));
-					if (strlen(namebuf) != len)
+					if ((int)strlen(namebuf) != len)
 						continue; /* v contains '\0' */
 					if (len > 0 && namebuf[len-1] != SEP)
 						namebuf[len++] = SEP;