1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-10-24 16:30:09 +00:00
parent 4f577310ce
commit 0ad553ce58
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,11 @@
Sat Oct 25 01:29:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* 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.
Sat Oct 25 00:14:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_sample): fixed sizes and randomness.

View file

@ -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);