summaryrefslogtreecommitdiff
path: root/libexslt
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2008-07-12 23:37:05 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2008-07-12 23:37:05 +0000
commit7fb814e3b40ce8444b92f46d3a5350480bf1cc1a (patch)
treecf90517e06993165c07bfc70dc0364e29f03ca14 /libexslt
parent663eb578fdd09c44ee1440ff94505d5c495c2357 (diff)
downloadlibxslt-7fb814e3b40ce8444b92f46d3a5350480bf1cc1a.tar.gz
libxslt-7fb814e3b40ce8444b92f46d3a5350480bf1cc1a.tar.bz2
libxslt-7fb814e3b40ce8444b92f46d3a5350480bf1cc1a.zip
fixed incorrect argument popping in exsltMathAtan2Function #541965
* libexslt/math.c: fixed incorrect argument popping in exsltMathAtan2Function #541965 svn path=/trunk/; revision=1483
Diffstat (limited to 'libexslt')
-rw-r--r--libexslt/math.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexslt/math.c b/libexslt/math.c
index 5c5720dd..e56709bd 100644
--- a/libexslt/math.c
+++ b/libexslt/math.c
@@ -972,22 +972,22 @@ exsltMathAtan2 (double y, double x) {
*/
static void
exsltMathAtan2Function (xmlXPathParserContextPtr ctxt, int nargs) {
- double ret, y;
+ double ret, x;
if (nargs != 2) {
xmlXPathSetArityError(ctxt);
return;
}
- y = xmlXPathPopNumber(ctxt);
+ x = xmlXPathPopNumber(ctxt);
if (xmlXPathCheckError(ctxt))
return;
- /* x */
+ /* y */
ret = xmlXPathPopNumber(ctxt);
if (xmlXPathCheckError(ctxt))
return;
- ret = exsltMathAtan2(y, ret);
+ ret = exsltMathAtan2(ret, x);
xmlXPathReturnNumber(ctxt, ret);
}