vendor/scs/src/cones.c in scs-0.4.1 vs vendor/scs/src/cones.c in scs-0.4.2

- old
+ new

@@ -329,11 +329,11 @@ } static scs_int set_up_sd_cone_work_space(ScsConeWork *c, const ScsCone *k) { scs_int i; #ifdef USE_LAPACK - blas_int n_max = 0; + blas_int n_max = 1; blas_int neg_one = -1; blas_int info = 0; scs_float wkopt = 0.0; #if VERBOSITY > 0 #define _STR_EXPAND(tok) #tok @@ -354,10 +354,10 @@ BLAS(syev) ("Vectors", "Lower", &n_max, c->Xs, &n_max, SCS_NULL, &wkopt, &neg_one, &info); if (info != 0) { - scs_printf("FATAL: syev failure, info = %li\n", (long)info); + scs_printf("FATAL: syev workspace query failure, info = %li\n", (long)info); return -1; } c->lwork = (blas_int)(wkopt + 1); /* +1 for int casting safety */ c->work = (scs_float *)scs_calloc(c->lwork, sizeof(scs_float));