summaryrefslogtreecommitdiff
path: root/ext/dl/callback
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 /ext/dl/callback
parent2e54fe9d4dd4569032590d0cf1bcea472d422c91 (diff)
* 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/dl/callback')
-rw-r--r--ext/dl/callback/mkcallback.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/callback/mkcallback.rb b/ext/dl/callback/mkcallback.rb
index b62a2eadf1c..d2f9e3f2e14 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',