awk: fix typo in atan2 code. closes bug 5594.

This commit is contained in:
Denis Vlasenko 2008-10-21 12:59:34 +00:00
parent 8fbd8ac8dd
commit 37890e2f37

View File

@ -2025,7 +2025,7 @@ static var *exec_builtin(node *op, var *res)
case B_a2: case B_a2:
#if ENABLE_FEATURE_AWK_MATH #if ENABLE_FEATURE_AWK_MATH
setvar_i(res, atan2(getvar_i(av[i]), getvar_i(av[1]))); setvar_i(res, atan2(getvar_i(av[0]), getvar_i(av[1])));
#else #else
syntax_error(EMSG_NO_MATH); syntax_error(EMSG_NO_MATH);
#endif #endif