This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Fix signed/unsigned warning
Type: compile error Stage:
Components: Interpreter Core Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, rhettinger
Priority: normal Keywords:

Created on 2008-12-02 20:53 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg76781 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-12-02 20:53
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)
msg76782 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-12-02 21:00
Fixed r67477.
History
Date User Action Args
2022-04-11 14:56:42adminsetgithub: 48745
2008-12-02 21:00:34rhettingersetstatus: open -> closed
resolution: fixed
messages: + msg76782
2008-12-02 20:53:08rhettingercreate