Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPointon committed Mar 27, 2024
1 parent 18bd9b1 commit 0074499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cliques.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ static bool init_data_from_args(Obj digraph_obj,
Obj max_obj,
Obj* group,
CliqueData* data) {
if (DigraphNrVertices(digraph_obj) + 1 > CLIQUES_STRUCTURE_SIZE
|| !is_initialized) {
if (!is_initialized
|| DigraphNrVertices(digraph_obj) + 1 > CLIQUES_STRUCTURE_SIZE) {
free_cliques_data(data);
is_initialized = true;
CLIQUES_STRUCTURE_SIZE = DigraphNrVertices(digraph_obj) + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/homos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ static bool init_data_from_args(Obj digraph1_obj,
Obj aut_grp_obj) {
uint16_t calculated_max_verts =
MAX(DigraphNrVertices(digraph1_obj), DigraphNrVertices(digraph2_obj));
if ((calculated_max_verts > HOMOS_STRUCTURE_SIZE) || !is_initialized) {
if (!is_initialized || (calculated_max_verts > HOMOS_STRUCTURE_SIZE)) {
free_homos_data();
is_initialized = true;

Expand Down

0 comments on commit 0074499

Please sign in to comment.