diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-29 20:25:46 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-29 20:25:46 (GMT) |
commit | d94c28e467cc550cc09d082eb8bd078e4f2df2e4 (patch) | |
tree | 4ef7166f9a84b89885cf4b9d2a4e9f8f9edb0f59 | |
parent | afb76320abd7d79844101d130a0421231c7de7f3 (diff) | |
download | cpython-d94c28e467cc550cc09d082eb8bd078e4f2df2e4.zip cpython-d94c28e467cc550cc09d082eb8bd078e4f2df2e4.tar.gz cpython-d94c28e467cc550cc09d082eb8bd078e4f2df2e4.tar.bz2 |
SF #561244: micro optimizations, builtins cannot be NULL, so use Py_INCREF
-rw-r--r-- | Objects/frameobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 90cd952..c65ca40 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -287,7 +287,7 @@ PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, } } else - Py_XINCREF(builtins); + Py_INCREF(builtins); f->f_builtins = builtins; Py_XINCREF(back); f->f_back = back; |