[New-bugs-announce] [issue4495] Fix signed/unsigned warning

Raymond Hettinger report at bugs.python.org
Tue Dec 2 21:53:09 CET 2008


New submission from Raymond Hettinger <rhettinger at users.sourceforge.net>:

C:\py30>svn diff
Index: Python/traceback.c
===================================================================
--- Python/traceback.c  (revision 67476)
+++ Python/traceback.c  (working copy)
@@ -171,7 +171,7 @@
                if (!PyUnicode_Check(v))
                        continue;
                path = _PyUnicode_AsStringAndSize(v, &len);
-               if (len + 1 + taillen >= (Py_ssize_t)namelen - 1)
+               if (len + 1 + (Py_ssize_t)taillen >= (Py_ssize_t)namelen
- 1)
                        continue; /* Too long */
                strcpy(namebuf, path);
                if (strlen(namebuf) != len)

----------
assignee: barry
components: Interpreter Core
messages: 76781
nosy: barry, rhettinger
severity: normal
status: open
title: Fix signed/unsigned warning
type: compile error
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4495>
_______________________________________


More information about the New-bugs-announce mailing list