From b60c66df15ca30f35e0ae745f7e322f80312f9f4 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 13 Nov 2009 10:42:35 +0000 Subject: [PATCH] fix to match new api git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@548 e16421f0-f15b-0410-abcd-98678b794739 --- tests/freemap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/freemap.cpp b/tests/freemap.cpp index f368d12..297cb07 100755 --- a/tests/freemap.cpp +++ b/tests/freemap.cpp @@ -44,7 +44,9 @@ TEST(FreemapTest,Freemap) { for (int t=0; t<1000000; t++) { if (t<500000 || t>504000) { uint8_t lr = rand_norm(28); - bin64_t alloc = space.find(top,lr); + bin64_t alloc = space.find(top); + while (alloc.layer()>lr) + alloc = alloc.left(); ASSERT_NE(0ULL,~alloc); EXPECT_EQ(bins::EMPTY, space.get(alloc)); space.set(alloc,bins::FILLED); -- 2.20.1