Avoid bit-shift of signed value

parent 0910b382
......@@ -222,7 +222,7 @@ backref(VRT_CTX, VCL_INT refnum, VCL_STRING fallback,
WS_Assert_Allocated(ctx->ws, task->priv, sizeof(*ov));
CAST_OBJ_NOTNULL(ov, task->priv, OV_MAGIC);
refnum <<= 1;
refnum *= 2;
assert(refnum + 1 < MAX_OV_USED);
if (ov->ovector[refnum] == -1)
return fallback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment