[master] 0250f7587 Flexelinting
Poul-Henning Kamp
phk at FreeBSD.org
Mon Feb 18 11:31:09 UTC 2019
commit 0250f758786fa8dde7bfff8a64d54a4a6fcc3054
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Feb 18 11:30:20 2019 +0000
Flexelinting
diff --git a/bin/varnishd/cache/cache_ban_build.c b/bin/varnishd/cache/cache_ban_build.c
index 948df5d8a..2d2f2ba69 100644
--- a/bin/varnishd/cache/cache_ban_build.c
+++ b/bin/varnishd/cache/cache_ban_build.c
@@ -252,7 +252,7 @@ BAN_AddTest(struct ban_proto *bp,
op = ban_parse_oper(a2);
if (op < 0 ||
- ((1<<BAN_OPERIDX(op)) & arg_opervalid[BAN_ARGIDX(pv->tag)]) == 0)
+ ((1U << BAN_OPERIDX(op)) & arg_opervalid[BAN_ARGIDX(pv->tag)]) == 0)
return (ban_error(bp,
"expected conditional (%s) got \"%s\"",
arg_operhelp[BAN_ARGIDX(pv->tag)],
@@ -397,7 +397,7 @@ ban_build_arg_operhelp(struct vsb *vsb, int arg)
mask = arg_opervalid[BAN_ARGIDX(arg)];
for (i = 0; i < BAN_OPERARRSZ; i++) {
- if ((mask & (1<<i)) == 0)
+ if ((mask & (1U << i)) == 0)
continue;
if (p == NULL)
p = oper[i];
More information about the varnish-commit
mailing list