svn commit: trunk/busybox/editors

vda at busybox.net vda at busybox.net
Tue Oct 21 12:59:35 UTC 2008


Author: vda
Date: 2008-10-21 05:59:34 -0700 (Tue, 21 Oct 2008)
New Revision: 23755

Log:
awk: fix typo in atan2 code. closes bug 5594.



Modified:
   trunk/busybox/editors/awk.c


Changeset:
Modified: trunk/busybox/editors/awk.c
===================================================================
--- trunk/busybox/editors/awk.c	2008-10-21 12:42:45 UTC (rev 23754)
+++ trunk/busybox/editors/awk.c	2008-10-21 12:59:34 UTC (rev 23755)
@@ -2025,7 +2025,7 @@
 
 	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




More information about the busybox-cvs mailing list