ruby-changes:22458
From: usa <ko1@a...>
Date: Thu, 9 Feb 2012 16:10:52 +0900 (JST)
Subject: [ruby-changes:22458] usa:r34507 (trunk): * ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}):
usa 2012-02-09 16:10:26 +0900 (Thu, 09 Feb 2012) New Revision: 34507 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34507 Log: * ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}): currenly pack/unpack does not accept "q!" and "Q!". Modified files: trunk/ChangeLog trunk/ext/dl/lib/dl/value.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 34506) +++ ChangeLog (revision 34507) @@ -1,3 +1,8 @@ +Thu Feb 9 16:08:55 2012 NAKAMURA Usaku <usa@r...> + + * ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}): + currenly pack/unpack does not accept "q!" and "Q!". + Thu Feb 9 16:01:29 2012 NAKAMURA Usaku <usa@r...> * ext/fiddle/conversions.c (value_to_generic): src is not guranteed as Index: ext/dl/lib/dl/value.rb =================================================================== --- ext/dl/lib/dl/value.rb (revision 34506) +++ ext/dl/lib/dl/value.rb (revision 34507) @@ -13,7 +13,7 @@ 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 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/