Skip to content

Commit

Permalink
Use operator[] instead of .insert
Browse files Browse the repository at this point in the history
Signed-off-by: Lakira Ashley <lakridesagain@gmail.com>
  • Loading branch information
LAK132 committed Jan 25, 2023
1 parent 106fceb commit 3db9d79
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/include/prjxray/xilinx/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,9 @@ Configuration<ArchType>::InitWithPackets(const typename ArchType::Part& part,
// do auto-incrementing block writes.
for (size_t ii = 0; ii < packet.data().size();
ii += ArchType::words_per_frame) {
frames.insert(
{current_frame_address,
packet.data().subspan(
ii,
ArchType::words_per_frame)});
frames[current_frame_address] =
packet.data().subspan(
ii, ArchType::words_per_frame);

auto next_address =
part.GetNextFrameAddress(
Expand Down Expand Up @@ -523,9 +521,8 @@ Configuration<ArchType>::InitWithPackets(const typename ArchType::Part& part,
current_frame_address =
frame_address_register;
start_dup_write = false;
frames.insert(
{current_frame_address,
frames[last_write_frame_address]});
frames[current_frame_address] =
frames[last_write_frame_address];
}
} break;
default:
Expand Down

0 comments on commit 3db9d79

Please sign in to comment.