Skip to content

Commit

Permalink
fix acceleration_interval 0 bug (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Dec 24, 2021
1 parent 2a06e55 commit 550c5fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scs.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,10 @@ static scs_int validate(const ScsData *d, const ScsCone *k,
scs_printf("scale must be positive (1 works well).\n");
return -1;
}
if (stgs->acceleration_interval <= 0) {
scs_printf("acceleration_interval must be positive (10 works well).\n");
return -1;
}
return 0;
}
#endif
Expand Down

0 comments on commit 550c5fc

Please sign in to comment.