diff options
author | William M. Brack <wbrack@src.gnome.org> | 2008-07-12 23:37:05 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2008-07-12 23:37:05 +0000 |
commit | 7fb814e3b40ce8444b92f46d3a5350480bf1cc1a (patch) | |
tree | cf90517e06993165c07bfc70dc0364e29f03ca14 | |
parent | 663eb578fdd09c44ee1440ff94505d5c495c2357 (diff) | |
download | libxslt-7fb814e3b40ce8444b92f46d3a5350480bf1cc1a.tar.gz |
fixed incorrect argument popping in exsltMathAtan2Function #541965
* libexslt/math.c: fixed incorrect argument popping in exsltMathAtan2Function #541965
svn path=/trunk/; revision=1483
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libexslt/math.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Sat Jul 12 16:36:58 PST 2008 William Brack <wbrack@mmm.com.hk> + + * libexslt/math.c: fixed incorrect argument popping in + exsltMathAtan2Function #541965 + Thu Jul 10 10:04:28 PST 2008 William Brack <wbrack@mmm.com.hk> * libxslt/functions.c: patch from Ron Burk to fix problem 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); } |