diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-10 10:40:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-10 10:40:07 +0000 |
commit | 5bfb9a63b7e2d440a459bdd0c09c22919bbf53ec (patch) | |
tree | cdbaf206c875db86a411da30d8fc15bb5d7015f4 /ext | |
parent | 2e54fe9d4dd4569032590d0cf1bcea472d422c91 (diff) | |
download | ruby-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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dl/callback/mkcallback.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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', |