Mercurial > hg
changeset 26213:4d6cdea33f37
parsers: use PyTuple_SET_ITEM() to fill new marker tuples
Because we know these tuples have no member yet, PyTuple_SetItem() isn't
necessary.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 05 Sep 2015 16:41:21 +0900 |
parents | 0d8df1f510c6 |
children | 46605888faf3 |
files | mercurial/parsers.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/parsers.c Sat Sep 05 12:56:53 2015 +0900 +++ b/mercurial/parsers.c Sat Sep 05 16:41:21 2015 +0900 @@ -2564,7 +2564,7 @@ Py_DECREF(list); return NULL; } - PyTuple_SetItem(list, i, hash); + PyTuple_SET_ITEM(list, i, hash); source += hashwidth; } return list; @@ -2647,7 +2647,7 @@ if (!tmp) { goto bail; } - PyTuple_SetItem(metadata, i, tmp); + PyTuple_SET_ITEM(metadata, i, tmp); } ret = Py_BuildValue("(OOHO(di)O)", prec, succs, flags, metadata, mtime, (int)tz * 60, parents);