diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 16:30:09 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-24 16:30:09 +0000 |
commit | e4b00456cb7fd6ec7b7c6ad5f6000c9a17b56770 (patch) | |
tree | dc1a4b6c9c8d82f8715dede75c1dfb061a7c3171 /ext | |
parent | f9684cee5c9a721693ff464cf869b8b5e9d22e00 (diff) | |
download | ruby-e4b00456cb7fd6ec7b7c6ad5f6000c9a17b56770.tar.gz ruby-e4b00456cb7fd6ec7b7c6ad5f6000c9a17b56770.tar.xz ruby-e4b00456cb7fd6ec7b7c6ad5f6000c9a17b56770.zip |
* ext/mathn/rational/rational.c: undef duplicated macro definition
first to shut up the warning.
* ext/mathn/rational/rational.c (rb_rational_new_mathn): specify
omitted return value.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mathn/rational/rational.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mathn/rational/rational.c b/ext/mathn/rational/rational.c index 74b7e4999..7a169f432 100644 --- a/ext/mathn/rational/rational.c +++ b/ext/mathn/rational/rational.c @@ -1191,10 +1191,12 @@ rb_rational_raw(VALUE x, VALUE y) #ifdef EXT_MATHN +#undef rb_rational_new1 +#undef rb_rational_new2 #define rb_rational_new1(x) rb_rational_new_mathn(x, INT2FIX(1)) #define rb_rational_new2(x,y) rb_rational_new_mathn(x, y) -static +static VALUE rb_rational_new_mathn(VALUE x, VALUE y) { return nurat_s_canonicalize_internal(rb_cRational, x, y); |