summaryrefslogtreecommitdiff
path: root/ext/dl
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 07:10:26 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 07:10:26 +0000
commitb2ba3242ea433a807264563c0f2d84652c537637 (patch)
tree501adac6f104025d834d1ae94314799aaea22720 /ext/dl
parentda098bd36e31dea28cbc58ed25bcb621e8b0a778 (diff)
* ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}):
currenly pack/unpack does not accept "q!" and "Q!". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/lib/dl/value.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/lib/dl/value.rb b/ext/dl/lib/dl/value.rb
index 51f96b2..e99e3cf 100644
--- a/ext/dl/lib/dl/value.rb
+++ b/ext/dl/lib/dl/value.rb
@@ -13,7 +13,7 @@ module DL
when TYPE_LONG
[val].pack("l!").unpack("L!")[0]
when TYPE_LONG_LONG
- [val].pack("q!").unpack("Q!")[0]
+ [val].pack("q").unpack("Q")[0]
else
val
end
@@ -30,7 +30,7 @@ module DL
when TYPE_LONG
[val].pack("L!").unpack("l!")[0]
when TYPE_LONG_LONG
- [val].pack("Q!").unpack("q!")[0]
+ [val].pack("Q").unpack("q")[0]
else
val
end