From: Denis Vlasenko Date: Tue, 21 Oct 2008 12:59:34 +0000 (-0000) Subject: awk: fix typo in atan2 code. closes bug 5594. X-Git-Tag: 1_13_0~85 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=37890e2f375b2b088e777877a8fc81654f59b81b;p=oweals%2Fbusybox.git awk: fix typo in atan2 code. closes bug 5594. --- diff --git a/editors/awk.c b/editors/awk.c index 6ebdec4d3..bdf2a7fa0 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