aboutsummaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack.c b/pack.c
index 45a5de0d4f..5d89efcaf2 100644
--- a/pack.c
+++ b/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) {