[master] 44ce398 Flexlinting
Poul-Henning Kamp
phk at FreeBSD.org
Tue Jan 12 15:35:28 CET 2016
commit 44ce39826190665fbf155556d2409086997a1856
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 89258e6..5985f91 100644
--- a/bin/varnishd/storage/storage_file.c
+++ b/bin/varnishd/storage/storage_file.c
@@ -422,8 +422,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