mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* util.c (ruby_strtod): Float("1e") should fail. [ruby-core:7330]
* pack.c (EXTEND32): unpack("l") did not work where sizeof(long) != 4. [ruby-talk:180024] * pack.c (pack_unpack): fixed integer overflow on template "w". [ruby-talk:180126] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dd0fa838d9
commit
d0a3c64fb4
5 changed files with 26 additions and 6 deletions
|
@ -15,6 +15,9 @@ class TestPack < Test::Unit::TestCase
|
|||
|
||||
$x = [-1073741825]
|
||||
assert_equal($x, $x.pack("q").unpack("q"))
|
||||
|
||||
$x = [-1]
|
||||
assert_equal($x, $x.pack("l").unpack("l"))
|
||||
end
|
||||
|
||||
def test_pack_N
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue