summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2016-02-04 11:10:56 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2016-02-04 11:10:56 +1100
commit429c5b04154fddeb26d64920c20ba4f251680731 (patch)
tree3197fe14c7bd86a7fafe122b47914311ccb17b55
parentbba822f810fe56603b6f826de0aa12818bb83d47 (diff)
downloadmongo-429c5b04154fddeb26d64920c20ba4f251680731.tar.gz
Fixup off by one in new WT_ALIGN_NEAREST macro.
-rw-r--r--src/include/misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/misc.h b/src/include/misc.h
index 3de95ba2213..5dadb1b1484 100644
--- a/src/include/misc.h
+++ b/src/include/misc.h
@@ -49,7 +49,7 @@
((((uintmax_t)(n)) + ((v) - 1)) & ~(((uintmax_t)(v)) - 1))
#define WT_ALIGN_NEAREST(n, v) \
- ((((uintmax_t)(n)) + ((v) / 2 + 1)) & ~(((uintmax_t)(v)) - 1))
+ ((((uintmax_t)(n)) + ((v) / 2)) & ~(((uintmax_t)(v)) - 1))
/* Min, max. */
#define WT_MIN(a, b) ((a) < (b) ? (a) : (b))