summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 00:29:43 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 00:29:43 +0000
commit3ebd1ff022f08e254f93c0ccfeacbff780726083 (patch)
tree9d6072e940c0432452e6a46042198054deb021ae
parenta8c4a952767d0f554b3ac4ea999dbeb5f54ae6eb (diff)
* bignum.c (rb_int_import): explicitly casting BDIGIT_DBL to BDIGIT
to prevent warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--bignum.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 318c809032c..cc79e101d44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 7 09:29:33 2013 Kenta Murata <mrkn@cookpad.com>
+
+ * bignum.c (rb_int_import): explicitly casting BDIGIT_DBL to BDIGIT
+ to prevent warning.
+
Fri Jun 7 07:29:33 2013 Tanaka Akira <akr@fsij.org>
* internal.h (rb_int_export): countp argument is split into
diff --git a/bignum.c b/bignum.c
index 7042fecec3b..159cded92bf 100644
--- a/bignum.c
+++ b/bignum.c
@@ -914,7 +914,7 @@ rb_int_import(int sign, const void *words, size_t wordcount, int wordorder, size
wordp += word_step;
}
if (dd)
- *dp++ = dd;
+ *dp++ = (BDIGIT)dd;
while (dp < de)
*dp++ = 0;