numeric.c: fix typos [ci skip]

* numeric.c (rb_num2ulong_internal, rb_num2ull): fix typos in
  comments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-11-01 12:35:30 +00:00
parent 8baad2d31c
commit 5dc2472024

View File

@ -2660,7 +2660,7 @@ rb_num2ulong_internal(VALUE val, int *wrap_p)
}
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)
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