mirror of
https://git.busybox.net/busybox.git
synced 2024-11-27 15:43:26 +08:00
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:
|
||||
#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
|
||||
syntax_error(EMSG_NO_MATH);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user