From a19267b377d2fe435d2e34b2a08bd7c9e390f830 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 8 Feb 2018 16:37:36 +0000 Subject: [PATCH] Adjust block-rounding line to match in serve.c --- src/common/ioutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ioutil.c b/src/common/ioutil.c index 1926e86..dfa47df 100644 --- a/src/common/ioutil.c +++ b/src/common/ioutil.c @@ -103,7 +103,7 @@ int open_and_mmap(const char* filename, int* out_fd, uint64_t *out_size, void ** */ if ( size != (size & (~0x1ff))) { warn("file does not fit into 512-byte sectors; the end of the file will be ignored."); - size = size & (~0x1ff); + size &= ~0x1ff; } if (out_size) {