From 2801cb1b32187b6a664c16d5a573e0fae7a40051 Mon Sep 17 00:00:00 2001 From: Brendan O'Donoghue Date: Fri, 24 Dec 2021 13:56:03 +0000 Subject: [PATCH] fix acceleration_interval 0 bug --- src/scs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scs.c b/src/scs.c index 68a25b8e..7d24d3ad 100644 --- a/src/scs.c +++ b/src/scs.c @@ -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