From 3ebd1ff022f08e254f93c0ccfeacbff780726083 Mon Sep 17 00:00:00 2001 From: mrkn Date: Fri, 7 Jun 2013 00:29:43 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ bignum.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * bignum.c (rb_int_import): explicitly casting BDIGIT_DBL to BDIGIT + to prevent warning. + Fri Jun 7 07:29:33 2013 Tanaka Akira * 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;