aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-03 11:59:30 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-03 11:59:30 +0000
commit7bc3e95205b1711c0896f48bd0dbe60645061c26 (patch)
tree82ad1405b7a01043a23f1cc0c5b01b32590a55fd
parent799fafc03b2a654de82d4bd0375dce5537edb88c (diff)
downloadruby-7bc3e95205b1711c0896f48bd0dbe60645061c26.tar.gz
* 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
-rw-r--r--ChangeLog6
-rw-r--r--ext/date/date_core.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 22b4a3177e..f1fb4ceab0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* include/ruby/missing.h, numeric.c (round): moved prototype of round()
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>
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index d01086e7ea..aafc6aac8a 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -5128,7 +5128,7 @@ d_lite_plus(VALUE self, VALUE other)
if (!df && f_zero_p(sf) && !m_of(dat))
return d_simple_new_internal(CLASS_OF(self),
- nth, jd,
+ nth, (int)jd,
m_sg(dat),
0, 0, 0,
(dat->s.flags | HAVE_JD) &
@@ -5136,7 +5136,7 @@ d_lite_plus(VALUE self, VALUE other)
COMPLEX_DAT));
else
return d_complex_new_internal(CLASS_OF(self),
- nth, jd,
+ nth, (int)jd,
df, sf,
m_of(dat), m_sg(dat),
0, 0, 0,