summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-11 20:37:35 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-11 20:37:35 (GMT)
commit6bf62dad9e83003a70aef4158df063697926ba7c (patch)
tree8aa964aef3976a2a0b7d1215bdbd7c61b0b8f16d /Python/traceback.c
parent90126035cab1aad6edbc62376a9ff9cb0453523f (diff)
downloadcpython-6bf62dad9e83003a70aef4158df063697926ba7c.zip
cpython-6bf62dad9e83003a70aef4158df063697926ba7c.tar.gz
cpython-6bf62dad9e83003a70aef4158df063697926ba7c.tar.bz2
Keep gcc -Wall and Microsoft VC happy.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 3f80ef5..f9b840e 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -196,7 +196,7 @@ tb_displayline(f, filename, lineno, name)
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;