vendor/scs/src/rw.c in scs-0.2.2 vs vendor/scs/src/rw.c in scs-0.2.3
- old
+ new
@@ -35,10 +35,10 @@
k->s = scs_calloc(k->ssize, sizeof(scs_int));
fread(k->s, sizeof(scs_int), k->ssize, fin);
fread(&(k->ep), sizeof(scs_int), 1, fin);
fread(&(k->ed), sizeof(scs_int), 1, fin);
fread(&(k->psize), sizeof(scs_int), 1, fin);
- k->p = scs_calloc(k->psize, sizeof(scs_int));
+ k->p = scs_calloc(k->psize, sizeof(scs_float));
fread(k->p, sizeof(scs_float), k->psize, fin);
return k;
}
static void write_scs_stgs(const ScsSettings *s, FILE *fout) {