diff options
author | Denis Vlasenko | 2008-10-21 12:59:34 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-10-21 12:59:34 +0000 |
commit | 37890e2f375b2b088e777877a8fc81654f59b81b (patch) | |
tree | b134d18eb80b47b46242343b596896b721dfe074 | |
parent | 8fbd8ac8ddad83f7ea724f12a1f5e6bf4af50f88 (diff) | |
download | busybox-37890e2f375b2b088e777877a8fc81654f59b81b.zip busybox-37890e2f375b2b088e777877a8fc81654f59b81b.tar.gz |
awk: fix typo in atan2 code. closes bug 5594.
-rw-r--r-- | editors/awk.c | 2 |
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 |