* pack.c (pack_pack): simplify comparison of explicit_endian
as pointed by nobu. * pack.c (pack_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a160986d90
commit
6a443e2eb2
@ -1,3 +1,10 @@
|
||||
Fri Oct 15 17:26:57 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* pack.c (pack_pack): simplify comparison of explicit_endian
|
||||
as pointed by nobu.
|
||||
|
||||
* pack.c (pack_unpack): ditto.
|
||||
|
||||
Thu Oct 14 09:46:28 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* sprintf.c (rb_str_format): fix: sprintf with hex format and
|
||||
|
4
pack.c
4
pack.c
@ -770,7 +770,7 @@ pack_pack(VALUE ary, VALUE fmt)
|
||||
|
||||
pack_integer:
|
||||
if (explicit_endian) {
|
||||
bigendian_p = ((explicit_endian - '<') != 0);
|
||||
bigendian_p = explicit_endian == '>';
|
||||
}
|
||||
|
||||
switch (integer_size) {
|
||||
@ -1666,7 +1666,7 @@ pack_unpack(VALUE str, VALUE fmt)
|
||||
|
||||
unpack_integer:
|
||||
if (explicit_endian) {
|
||||
bigendian_p = ((explicit_endian - '<') != 0);
|
||||
bigendian_p = explicit_endian == '>';
|
||||
}
|
||||
|
||||
switch (integer_size) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user