diff options
Diffstat (limited to 'lang/python23-pth/patches/patch-ao')
-rw-r--r-- | lang/python23-pth/patches/patch-ao | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/python23-pth/patches/patch-ao b/lang/python23-pth/patches/patch-ao new file mode 100644 index 00000000000..9d474757c36 --- /dev/null +++ b/lang/python23-pth/patches/patch-ao @@ -0,0 +1,14 @@ +$NetBSD: patch-ao,v 1.1 2004/05/12 16:25:34 recht Exp $ + +diff -u python/dist/src/Objects/intobject.c:2.105 python/dist/src/Objects/intobject.c:2.105.8.1 +--- Objects/intobject.c:2.105 Sat Jun 28 13:04:24 2003 ++++ Objects/intobject.c Sun Feb 8 10:56:07 2004 +@@ -1080,7 +1080,7 @@ + int ival; + #if NSMALLNEGINTS + NSMALLPOSINTS > 0 + for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) { +- if ((free_list = fill_free_list()) == NULL) ++ if (!free_list && (free_list = fill_free_list()) == NULL) + return 0; + /* PyObject_New is inlined */ + v = free_list; |