From 58a19a64d898a06f84d4ab1ede51a4529eb93d0d Mon Sep 17 00:00:00 2001 From: Andrei Alexandrescu Date: Sat, 1 Aug 2015 16:58:39 -0400 Subject: [PATCH] Relax totalAllocation assertion for 32 bit --- std/experimental/allocator/building_blocks/bitmapped_block.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/experimental/allocator/building_blocks/bitmapped_block.d b/std/experimental/allocator/building_blocks/bitmapped_block.d index bf33c7db8..8a180eea9 100644 --- a/std/experimental/allocator/building_blocks/bitmapped_block.d +++ b/std/experimental/allocator/building_blocks/bitmapped_block.d @@ -845,11 +845,11 @@ unittest testAllocateAll!(128 * 20)(13 * 128, 128); } -// Test totakAllocation +// Test totalAllocation unittest { BitmappedBlock!(8, 8, NullAllocator) h1; - assert(h1.totalAllocation(1) == 16); + assert(h1.totalAllocation(1) >= 8); assert(h1.totalAllocation(64) == 8 + 8 * 8); //writeln(h1.totalAllocation(8 * 64)); assert(h1.totalAllocation(8 * 64) == 8 + 8 * 64);