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 fb6472c809..0a37d8d18e 100644
--- a/pack.c
+++ b/pack.c
@@ -2006,9 +2006,9 @@ pack_unpack(VALUE str, VALUE fmt)
*ptr++ = castchar(c << 6 | d);
}
if (a != -1 && b != -1) {
- if (c == -1 && *s == '=')
+ if (c == -1)
*ptr++ = castchar(a << 2 | b >> 4);
- else if (c != -1 && *s == '=') {
+ else {
*ptr++ = castchar(a << 2 | b >> 4);
*ptr++ = castchar(b << 4 | c >> 2);
}