diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-12 19:09:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-12 19:09:51 +0200 |
commit | 99add41656586d57360d1af8690ef84826b55f61 (patch) | |
tree | afb6292a5dc28434a7e049028f6d6e5afccf21f4 | |
parent | 6d21645f463d6b6f73cf8b9baf9afe6675abf189 (diff) | |
download | vim-99add41656586d57360d1af8690ef84826b55f61.zip |
updated for version 7.3.939
Problem: Using Py_BuildValue is inefficient sometimes.
Solution: Use PyLong_FromLong(). (ZyX)
-rw-r--r-- | src/if_py_both.h | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index f8b51b7a3..dc9be3ad2 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -1838,10 +1838,10 @@ WindowAttr(WindowObject *this, char *name) return Py_BuildValue("(ll)", (long)(pos->lnum), (long)(pos->col)); } else if (strcmp(name, "height") == 0) - return Py_BuildValue("l", (long)(this->win->w_height)); + return PyLong_FromLong((long)(this->win->w_height)); #ifdef FEAT_VERTSPLIT else if (strcmp(name, "width") == 0) - return Py_BuildValue("l", (long)(W_WIDTH(this->win))); + return PyLong_FromLong((long)(W_WIDTH(this->win))); #endif else if (strcmp(name, "vars") == 0) return DictionaryNew(this->win->w_vars); diff --git a/src/version.c b/src/version.c index f6d3840d8..8e311b861 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 939, +/**/ 938, /**/ 937, |