Skip to content

Commit 0091941

Browse files
committed
avoid the warning "memcpy will always overflow"
1 parent 68aea18 commit 0091941

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

alignment/seqregions.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,9 @@ void merge_RACGT_ORACGT(const SeqRegion& seq1_region,
851851
length_to_root += upper_plength;
852852
}
853853
SeqRegion::LHType root_vec;
854-
memcpy(root_vec.data(), model->root_freqs,
855-
sizeof(RealNumType) * num_states);
854+
/*memcpy(root_vec.data(), model->root_freqs,
855+
sizeof(RealNumType) * num_states);*/
856+
memcpy(root_vec.data(), model->root_freqs, sizeof(SeqRegion::LHType));
856857

857858
RealNumType* transposed_mut_mat_row =
858859
model->transposed_mut_mat + model->row_index[seq1_state];

0 commit comments

Comments
 (0)