aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-10 10:40:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-10 10:40:07 +0000
commit5bfb9a63b7e2d440a459bdd0c09c22919bbf53ec (patch)
treecdbaf206c875db86a411da30d8fc15bb5d7015f4
parent2e54fe9d4dd4569032590d0cf1bcea472d422c91 (diff)
downloadruby-5bfb9a63b7e2d440a459bdd0c09c22919bbf53ec.tar.gz
* ext/dl/callback/mkcallback.rb (DLTYPE[FLOAT]): cast to suppress
warnings. [ruby-core:22792] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/dl/callback/mkcallback.rb2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b65e8bb0a..caaf8106e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
-Tue Mar 10 14:43:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Mar 10 19:40:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/callback/mkcallback.rb (DLTYPE[FLOAT]): cast to suppress
+ warnings. [ruby-core:22792]
* array.c, bignum.c, gc.c, numeric.c, string.c, util.c, insns.def,
missing/crypt.c, missing/vsnprintf.c, : suppress warnings.
+ [ruby-core:22792]
Tue Mar 10 13:45:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
diff --git a/ext/dl/callback/mkcallback.rb b/ext/dl/callback/mkcallback.rb
index b62a2eadf1..d2f9e3f2e1 100644
--- a/ext/dl/callback/mkcallback.rb
+++ b/ext/dl/callback/mkcallback.rb
@@ -73,7 +73,7 @@ DLTYPE = {
FLOAT => {
:name => 'float',
:type => 'float',
- :conv => 'RFLOAT_VALUE(%s)',
+ :conv => '(float)RFLOAT_VALUE(%s)',
},
DOUBLE => {
:name => 'double',