summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-05-12 19:09:51 +0200
committerBram Moolenaar <bram@vim.org>2013-05-12 19:09:51 +0200
commit8c8ef5c5c692626d64de05e229d8a30b2267b434 (patch)
tree28c824389a8f0d4df5a4d8174a2fdbcf0e9a5ea2
parentd7fc5819a7b99e45efd6c0d48e803e43c6b1d7a2 (diff)
downloadvim-7.3.939.tar.gz
updated for version 7.3.939v7.3.939v7-3-939
Problem: Using Py_BuildValue is inefficient sometimes. Solution: Use PyLong_FromLong(). (ZyX)
-rw-r--r--src/if_py_both.h4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index f8b51b7a..dc9be3ad 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 f6d3840d..8e311b86 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,