summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--bignum.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 318c809032..cc79e101d4 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 7042fecec3..159cded92b 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;