* 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:
akr 2010-02-24 15:32:06 +00:00
parent 7e5f20c842
commit e53e5edab2
3 changed files with 257 additions and 130 deletions

View file

@ -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"))
}