From 0f6782c9e5a9171d69d8e62dff33a558ba542d58 Mon Sep 17 00:00:00 2001 From: pants Date: Wed, 31 Aug 2016 11:57:40 -0400 Subject: did some refactoring --- src/update_factor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/update_factor.c') diff --git a/src/update_factor.c b/src/update_factor.c index 6b8e05e..debfe7b 100644 --- a/src/update_factor.c +++ b/src/update_factor.c @@ -16,13 +16,13 @@ bool update_factor(cholmod_factor *factor, unsigned int v1, unsigned int v2, for (int i = 0; i < n; i++) { if (i <= v3) - ((CHOL_INT *)update_mat->p)[i] = 0; + ((int_t *)update_mat->p)[i] = 0; else - ((CHOL_INT *)update_mat->p)[i] = 2; + ((int_t *)update_mat->p)[i] = 2; } - ((CHOL_INT *)update_mat->p)[n] = 2; - ((CHOL_INT *)update_mat->i)[0] = v3; - ((CHOL_INT *)update_mat->i)[1] = v4; + ((int_t *)update_mat->p)[n] = 2; + ((int_t *)update_mat->i)[0] = v3; + ((int_t *)update_mat->i)[1] = v4; ((double *)update_mat->x)[0] = 1; ((double *)update_mat->x)[1] = -1; -- cgit v1.2.3-70-g09d2