[4.1] e59560e Flexlinting
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 14 15:15:12 CET 2016
commit e59560ee9046afa3793e193413989e9793fe3568
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jan 12 14:27:58 2016 +0000
Flexlinting
diff --git a/bin/varnishd/storage/storage_file.c b/bin/varnishd/storage/storage_file.c
index 152d3b2..395e608 100644
--- a/bin/varnishd/storage/storage_file.c
+++ b/bin/varnishd/storage/storage_file.c
@@ -451,8 +451,8 @@ smf_alloc(const struct stevedore *st, size_t size)
CAST_OBJ_NOTNULL(sc, st->priv, SMF_SC_MAGIC);
assert(size > 0);
- size += (sc->pagesize - 1);
- size &= ~(sc->pagesize - 1);
+ size += (sc->pagesize - 1L);
+ size &= ~(sc->pagesize - 1L);
Lck_Lock(&sc->mtx);
sc->stats->c_req++;
smf = alloc_smf(sc, size);
More information about the varnish-commit
mailing list