awk: fix typo in atan2 code. closes bug 5594.
This commit is contained in:
parent
8fbd8ac8dd
commit
37890e2f37
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user