Actions
Bug #3721
closedUnsigned formats broken in 1.9.2's unpack
Bug #3721:
Unsigned formats broken in 1.9.2's unpack
Description
=begin
When specifying the V format code, unpack should treat the four bytes as an unsigned long integer. As can be seen in the following example, it treats it as a signed integer instead:
"\xFF\xFF\xFF\xFF".unpack(?V) => [-1]
The same code worked properly in 1.9.1.
By the way, the same problem occurs for the N and L format codes.
=end
Actions