Skip to content

Commit

Permalink
#2474 Assign FO_Node instead of calling memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Apr 15, 2023
1 parent 422baa3 commit af6712c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/other/mode_time_domain/fo_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ N_nodes = N*N;

TheGraph = new FO_Node [N_nodes];

memcpy(TheGraph, g.TheGraph, N_nodes*sizeof(FO_Node));
for (int idx=0; idx<N_nodes; idx++) {
TheGraph[idx] = g.TheGraph[idx];
}

//
// done
Expand Down

0 comments on commit af6712c

Please sign in to comment.