From 37890e2f375b2b088e777877a8fc81654f59b81b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 21 Oct 2008 12:59:34 +0000 Subject: awk: fix typo in atan2 code. closes bug 5594. --- editors/awk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3