Noxerus (D. G.)
- Login: Noxerus
- Registered on: 08/19/2010
- Last sign in: 09/14/2012
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
08/22/2010
-
08:11 AM Ruby Bug #3721: Unsigned formats broken in 1.9.2's unpack
- =begin
Thanks, the patch seems to fix it!
Perhaps it's worthwhile to extend the "make test" suite of self-tests to verify the expected behavior of the unpack method?
=end
08/20/2010
-
08:20 AM Ruby Bug #3721: Unsigned formats broken in 1.9.2's unpack
- =begin
Yes, 4294967295 is the expected result.
I've just tried the same code in a 32-bit build (ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-mswin32_100]), and it also gives the correct result:
"\xFF\xFF\xFF\xFF".unpack(?V) => ... -
07:59 AM Ruby Bug #3721 (Closed): Unsigned formats broken in 1.9.2's unpack
- =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 s...