From 3c49fe014d2d07f1c3c60103b938df6dcbc65710 Mon Sep 17 00:00:00 2001 From: Leonardo Romor Date: Tue, 11 Mar 2025 22:25:23 +0100 Subject: [PATCH] fix: removed duplicate variable --- fpga/assembler.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fpga/assembler.cc b/fpga/assembler.cc index 8614605..02a2178 100644 --- a/fpga/assembler.cc +++ b/fpga/assembler.cc @@ -108,10 +108,9 @@ static absl::Status ProcessFasmFeatures( absl::flat_hash_set used_config_buses; // Select only bit addresses with value bit set to 1. for (int addr = 0; addr < tile_feature.width; ++addr) { - const unsigned bit_addr = (addr + tile_feature.start_bit); - const bool value = bits & (1 << bit_addr); + const unsigned feature_addr = (addr + tile_feature.start_bit); + const bool value = bits & (1 << feature_addr); if (value) { - const int feature_addr = addr + tile_feature.start_bit; db.ConfigBits( tile_name, feature, feature_addr, [&frames, &used_config_buses](