mirror of https://github.com/openXC7/prjxray.git
Use operator[] instead of .insert
Signed-off-by: Lakira Ashley <lakridesagain@gmail.com>
This commit is contained in:
parent
e4b6f0afd4
commit
49f559cd40
|
|
@ -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(
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue