mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
799fafc03b
commit
7bc3e95205
2 changed files with 7 additions and 3 deletions
|
@ -1,8 +1,12 @@
|
||||||
|
Fri Jun 3 20:58:47 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
|
||||||
|
|
||||||
Fri Jun 3 20:56:40 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Jun 3 20:56:40 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/missing.h, numeric.c (round): moved prototype of round()
|
* include/ruby/missing.h, numeric.c (round): moved prototype of round()
|
||||||
from numeric.c to missing.h. (note: round() is C99 feature, so ruby
|
from numeric.c to missing.h. (note: round() is C99 feature, so ruby
|
||||||
provides it if not exists in C runtime.)
|
provides it if not exist in C runtime.)
|
||||||
|
|
||||||
Fri Jun 3 19:58:14 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Jun 3 19:58:14 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
|
|
@ -5128,7 +5128,7 @@ d_lite_plus(VALUE self, VALUE other)
|
||||||
|
|
||||||
if (!df && f_zero_p(sf) && !m_of(dat))
|
if (!df && f_zero_p(sf) && !m_of(dat))
|
||||||
return d_simple_new_internal(CLASS_OF(self),
|
return d_simple_new_internal(CLASS_OF(self),
|
||||||
nth, jd,
|
nth, (int)jd,
|
||||||
m_sg(dat),
|
m_sg(dat),
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
(dat->s.flags | HAVE_JD) &
|
(dat->s.flags | HAVE_JD) &
|
||||||
|
@ -5136,7 +5136,7 @@ d_lite_plus(VALUE self, VALUE other)
|
||||||
COMPLEX_DAT));
|
COMPLEX_DAT));
|
||||||
else
|
else
|
||||||
return d_complex_new_internal(CLASS_OF(self),
|
return d_complex_new_internal(CLASS_OF(self),
|
||||||
nth, jd,
|
nth, (int)jd,
|
||||||
df, sf,
|
df, sf,
|
||||||
m_of(dat), m_sg(dat),
|
m_of(dat), m_sg(dat),
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue