From: John Darrington Date: Thu, 16 Oct 2008 02:10:50 +0000 (+0800) Subject: Fixed return type of design_matrix_get_case_count. X-Git-Tag: v0.7.1~50^2~21^2~1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9634731e62c6ec7ea9276fd8608606b8522b96ce;p=pspp-builds.git 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 --- 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