summaryrefslogtreecommitdiff
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 f43b74822d..8e072c9683 100644
--- a/pack.c
+++ b/pack.c
@@ -1549,7 +1549,7 @@ pack_unpack(str, fmt)
{
VALUE str = infected_str_new(0, (send - s)*3/4, str);
char *ptr = RSTRING(str)->ptr;
- int a,b,c,d;
+ int a,b,c = 0,d;
static int first = 1;
static int b64_xtable[256];
@@ -1834,7 +1834,7 @@ utf8_to_uv(p, lenp)
if (n != 0) {
uv &= (1<<(BYTEWIDTH-2-n)) - 1;
while (n--) {
- uv = uv << 6 | *p++ & ((1<<6)-1);
+ uv = uv << 6 | (*p++ & ((1<<6)-1));
}
}
return uv;