fixed the parameter order when calling Python based extensions. Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Wed, 21 Aug 2002 17:00:38 +0000 (17:00 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Wed, 21 Aug 2002 17:00:38 +0000 (17:00 +0000)
* python/libxslt.c: fixed the parameter order when calling
  Python based extensions.
Daniel

ChangeLog
python/libxslt.c

index 84a116f..cbcc1e7 100644 (file)
--- 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
index dcf83e3..5809c20 100644 (file)
@@ -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);