From 0338368afa369d097dfb35e0705fef10baa3d20e Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 28 Jan 2021 19:24:00 -0800 Subject: Add Partition APIs to ice40, nexus, gowin archs. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- common/fast_bels.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/fast_bels.h b/common/fast_bels.h index 54ac97d9..bc8e39bf 100644 --- a/common/fast_bels.h +++ b/common/fast_bels.h @@ -30,7 +30,7 @@ NEXTPNR_NAMESPACE_BEGIN struct FastBels { struct TypeData { size_t type_index; - size_t number_of_possible_bels; + int number_of_possible_bels; }; FastBels(Context *ctx, int minBelsForGridPick) : ctx(ctx), minBelsForGridPick(minBelsForGridPick) {} @@ -133,7 +133,7 @@ struct FastBels { typedef std::vector>> FastBelsData; - size_t getBelsForCellType(IdString cell_type, FastBelsData **data) { + int getBelsForCellType(IdString cell_type, FastBelsData **data) { auto iter = cell_types.find(cell_type); if(iter == cell_types.end()) { addCellType(cell_type); -- cgit v1.2.3