Merge "Fixup a failing assert." into dalvik-dev
diff --git a/vm/alloc/HeapSource.c b/vm/alloc/HeapSource.c
index 527ec2e..62c0740 100644
--- a/vm/alloc/HeapSource.c
+++ b/vm/alloc/HeapSource.c
@@ -691,8 +691,8 @@
dst->bitsLen = HB_OFFSET_TO_BYTE_INDEX(max - base) + sizeof(dst->bits);
/* The exclusive limit from bitsLen is greater than the inclusive max. */
assert(base + HB_MAX_OFFSET(dst) > max);
- /* The exclusive limit is less than one word of bits beyond max. */
- assert((base + HB_MAX_OFFSET(dst)) - max <
+ /* The exclusive limit is at most one word of bits beyond max. */
+ assert((base + HB_MAX_OFFSET(dst)) - max <=
HB_OBJECT_ALIGNMENT * HB_BITS_PER_WORD);
dst->allocLen = dst->bitsLen;
offset = base - src->base;