From f36d98a916291f792ac2f29492fff0c82ead0c68 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Mon, 15 Jan 2018 17:30:44 +0100 Subject: [PATCH] Move to const the Descriptor in desc_check --- control/descriptor.c | 2 +- control/descriptor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/control/descriptor.c b/control/descriptor.c index de7d216bd..c9d121c51 100644 --- a/control/descriptor.c +++ b/control/descriptor.c @@ -258,7 +258,7 @@ MORSE_desc_t* morse_desc_submatrix(MORSE_desc_t *descA, int i, int j, int m, int /******************************************************************************* * Check for descriptor correctness **/ -int morse_desc_check(MORSE_desc_t *desc) +int morse_desc_check(const MORSE_desc_t *desc) { if (desc == NULL) { morse_error("morse_desc_check", "NULL descriptor"); diff --git a/control/descriptor.h b/control/descriptor.h index 2f6c6afe9..37cb2b19a 100644 --- a/control/descriptor.h +++ b/control/descriptor.h @@ -63,7 +63,7 @@ MORSE_desc_t morse_desc_init_user(MORSE_enum dtyp, int mb, int nb, int bsiz, int (*get_rankof)( const MORSE_desc_t*, int, int )); MORSE_desc_t* morse_desc_submatrix(MORSE_desc_t *descA, int i, int j, int m, int n); -int morse_desc_check (MORSE_desc_t *desc); +int morse_desc_check (const MORSE_desc_t *desc); int morse_desc_mat_alloc(MORSE_desc_t *desc); int morse_desc_mat_free (MORSE_desc_t *desc); -- GitLab