From 9634731e62c6ec7ea9276fd8608606b8522b96ce Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 16 Oct 2008 10:10:50 +0800 Subject: [PATCH] Fixed return type of design_matrix_get_case_count. design_matrix_get_case_count was declared as returning a void but it tried to return a value. Changed it to returning size_t --- src/math/design-matrix.c | 4 ++-- src/math/design-matrix.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/design-matrix.c b/src/math/design-matrix.c index e3743228..df68287b 100644 --- a/src/math/design-matrix.c +++ b/src/math/design-matrix.c @@ -247,8 +247,8 @@ design_matrix_set_case_count (struct design_matrix *dm, const struct variable *v /* Get the number of cases for V. */ -void -design_matrix_get_case_count (struct design_matrix *dm, const struct variable *v) +size_t +design_matrix_get_case_count (const struct design_matrix *dm, const struct variable *v) { size_t i; assert (dm != NULL); diff --git a/src/math/design-matrix.h b/src/math/design-matrix.h index 01026a22..ba7f9842 100644 --- a/src/math/design-matrix.h +++ b/src/math/design-matrix.h @@ -89,5 +89,5 @@ void design_matrix_increment_case_count (struct design_matrix *, const struct va void design_matrix_set_case_count (struct design_matrix *, const struct variable *, size_t); -void design_matrix_get_case_count (struct design_matrix *, const struct variable *); +size_t design_matrix_get_case_count (const struct design_matrix *, const struct variable *); #endif -- 2.30.2