summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenis Vlasenko2008-10-21 12:59:34 +0000
committerDenis Vlasenko2008-10-21 12:59:34 +0000
commit37890e2f375b2b088e777877a8fc81654f59b81b (patch)
treeb134d18eb80b47b46242343b596896b721dfe074 /editors
parent8fbd8ac8ddad83f7ea724f12a1f5e6bf4af50f88 (diff)
downloadbusybox-37890e2f375b2b088e777877a8fc81654f59b81b.zip
busybox-37890e2f375b2b088e777877a8fc81654f59b81b.tar.gz
awk: fix typo in atan2 code. closes bug 5594.
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 6ebdec4..bdf2a7f 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -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