mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
* pack.c (pack_unpack): don't use OFF32 for gcc 4.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7e5f20c842
commit
e53e5edab2
3 changed files with 257 additions and 130 deletions
|
@ -493,7 +493,7 @@ class TestPack < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_short_string
|
||||
%w[n N v V s S l L q Q].each {|fmt|
|
||||
%w[n N v V s S i I l L q Q s! S! i! I! l! l!].each {|fmt|
|
||||
str = [1].pack(fmt)
|
||||
assert_equal([1,nil], str.unpack("#{fmt}2"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue