1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

should use 'c' for 'unsigned char ref'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ttate 2004-09-21 12:47:48 +00:00
parent bfabc05a43
commit f427cf9352

View file

@ -53,7 +53,7 @@ module DL
proc{|v| (v != 0) ? true : false}, proc{|v| (v != 0) ? true : false},
proc{|v,len| v ? 1 : 0}, proc{|v,len| v ? 1 : 0},
proc{|v,len| (v != 0) ? true : false}], proc{|v,len| (v != 0) ? true : false}],
["unsigned char", "I", ["unsigned char", "C",
proc{|v| [v].pack("C").unpack("c")[0]}, proc{|v| [v].pack("C").unpack("c")[0]},
proc{|v| [v].pack("c").unpack("C")[0]}, proc{|v| [v].pack("c").unpack("C")[0]},
proc{|v| [v].pack("C").unpack("c")[0]}, proc{|v| [v].pack("C").unpack("c")[0]},
@ -73,7 +73,7 @@ module DL
proc{|v| [v].pack("l").unpack("L")[0]}, proc{|v| [v].pack("l").unpack("L")[0]},
proc{|v| [v].pack("L").unpack("l")[0]}, proc{|v| [v].pack("L").unpack("l")[0]},
proc{|v| [v].pack("l").unpack("L")[0]}], proc{|v| [v].pack("l").unpack("L")[0]}],
["unsigned char ref", "i", ["unsigned char ref", "c",
proc{|v| [v].pack("C").unpack("c")[0]}, proc{|v| [v].pack("C").unpack("c")[0]},
proc{|v| [v].pack("c").unpack("C")[0]}, proc{|v| [v].pack("c").unpack("C")[0]},
nil, nil], nil, nil],