summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-08-21 17:00:38 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-08-21 17:00:38 +0000
commit4c95dfde981ff062977331963804e0446be1bb3c (patch)
treefe161def336c2320812eb71b3540d3a6a3dbb851
parentf2914bee43533e6bcea40066ad50a90267ea3456 (diff)
downloadlibxslt-4c95dfde981ff062977331963804e0446be1bb3c.tar.gz
libxslt-4c95dfde981ff062977331963804e0446be1bb3c.tar.bz2
libxslt-4c95dfde981ff062977331963804e0446be1bb3c.zip
fixed the parameter order when calling Python based extensions. Daniel
* python/libxslt.c: fixed the parameter order when calling Python based extensions. Daniel
-rw-r--r--ChangeLog5
-rw-r--r--python/libxslt.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 84a116f9..cbcc1e70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Aug 21 18:59:28 CEST 2002 Daniel Veillard <daniel@veillard.com>
+
+ * python/libxslt.c: fixed the parameter order when calling
+ Python based extensions.
+
Wed Aug 21 13:48:07 CEST 2002 Daniel Veillard <daniel@veillard.com>
* libxslt/transform.c libxslt/xslt.c: fixed bug #89258 and a bit of
diff --git a/python/libxslt.c b/python/libxslt.c
index dcf83e3a..5809c203 100644
--- a/python/libxslt.c
+++ b/python/libxslt.c
@@ -107,7 +107,7 @@ libxslt_xmlXPathFuncCallback(xmlXPathParserContextPtr ctxt, int nargs) {
list = PyTuple_New(nargs + 1);
PyTuple_SetItem(list, 0, libxml_xmlXPathParserContextPtrWrap(ctxt));
- for (i = 0;i < nargs;i++) {
+ for (i = nargs - 1;i >= 0;i--) {
obj = valuePop(ctxt);
cur = libxml_xmlXPathObjectPtrWrap(obj);
PyTuple_SetItem(list, i + 1, cur);