From 7fb814e3b40ce8444b92f46d3a5350480bf1cc1a Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Sat, 12 Jul 2008 23:37:05 +0000 Subject: [PATCH] fixed incorrect argument popping in exsltMathAtan2Function #541965 * libexslt/math.c: fixed incorrect argument popping in exsltMathAtan2Function #541965 svn path=/trunk/; revision=1483 --- ChangeLog | 5 +++++ libexslt/math.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c11db6d..e5fecdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 12 16:36:58 PST 2008 William Brack + + * libexslt/math.c: fixed incorrect argument popping in + exsltMathAtan2Function #541965 + Thu Jul 10 10:04:28 PST 2008 William Brack * libxslt/functions.c: patch from Ron Burk to fix problem diff --git a/libexslt/math.c b/libexslt/math.c index 5c5720d..e56709b 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); } -- 2.7.4