+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
*/
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);
}