From 27b7805829c01dec0507bc2afac9c6bfbf25c957 Mon Sep 17 00:00:00 2001 From: Jason Stover Date: Fri, 14 Oct 2005 15:13:59 +0000 Subject: [PATCH] Replaced use of errno with assert --- src/regression.q | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/regression.q b/src/regression.q index d6ebc520..ba413a06 100644 --- a/src/regression.q +++ b/src/regression.q @@ -495,18 +495,8 @@ run_regression (const struct casefile *cf, void *cmd_) */ if (is_depvar (i)) { - if (v->type == NUMERIC) - { - gsl_vector_set (Y, row, val->f); - } - else - { - errno = EINVAL; - fprintf (stderr, - "%s:%d: Dependent variable should be numeric: %s\n", - __FILE__, __LINE__, strerror (errno)); - err_cond_fail (); - } + assert(v->type == NUMERIC); + gsl_vector_set (Y, row, val->f); } else { -- 2.30.2