summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 07:11:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 07:11:22 +0000
commit96b40dff450df701200ea5edceb07f2ed847e3fd (patch)
treea2c90999001ebcb8fd2fd67ffb3d5911a8e98f81 /math.c
parent7dd3853eac98396d3b5abee16d7f680d941eae82 (diff)
downloadruby-96b40dff450df701200ea5edceb07f2ed847e3fd.tar.gz
2000-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math.c b/math.c
index 39bc48aa1c..85e85bc75b 100644
--- a/math.c
+++ b/math.c
@@ -22,11 +22,11 @@ VALUE rb_mMath;
}
static VALUE
-math_atan2(obj, x, y)
+math_atan2(obj, y, x)
VALUE obj, x, y;
{
- Need_Float2(x, y);
- return rb_float_new(atan2(RFLOAT(x)->value, RFLOAT(y)->value));
+ Need_Float2(y, x);
+ return rb_float_new(atan2(RFLOAT(y)->value, RFLOAT(x)->value));
}
static VALUE