ruby-changes:44463
From: nobu <ko1@a...>
Date: Tue, 1 Nov 2016 21:35:35 +0900 (JST)
Subject: [ruby-changes:44463] nobu:r56536 (trunk): numeric.c: fix typos [ci skip]
nobu 2016-11-01 21:35:30 +0900 (Tue, 01 Nov 2016) New Revision: 56536 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56536 Log: numeric.c: fix typos [ci skip] * numeric.c (rb_num2ulong_internal, rb_num2ull): fix typos in comments. Modified files: trunk/numeric.c Index: numeric.c =================================================================== --- numeric.c (revision 56535) +++ numeric.c (revision 56536) @@ -2660,7 +2660,7 @@ rb_num2ulong_internal(VALUE val, int *wr https://github.com/ruby/ruby/blob/trunk/numeric.c#L2660 } if (FIXNUM_P(val)) { - long l = FIX2LONG(val); /* this is FIX2LONG, inteneded */ + long l = FIX2LONG(val); /* this is FIX2LONG, intended */ if (wrap_p) *wrap_p = l < 0; return (unsigned long)l; @@ -2923,7 +2923,7 @@ rb_num2ull(VALUE val) https://github.com/ruby/ruby/blob/trunk/numeric.c#L2923 rb_raise(rb_eTypeError, "no implicit conversion from nil"); } else if (RB_TYPE_P(val, T_FIXNUM)) { - return (LONG_LONG)FIX2LONG(val); /* this is FIX2LONG, inteneded */ + return (LONG_LONG)FIX2LONG(val); /* this is FIX2LONG, intended */ } else if (RB_TYPE_P(val, T_FLOAT)) { if (RFLOAT_VALUE(val) < ULLONG_MAX_PLUS_ONE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/