From: John Darrington Date: Sun, 19 Jul 2009 12:20:07 +0000 (+0200) Subject: Add assertion to check code consitency X-Git-Tag: build37~50^2~4 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6111d26da0701438a2e2813f14b0edfdf5453c8;p=pspp-builds.git Add assertion to check code consitency --- diff --git a/src/language/stats/roc.c b/src/language/stats/roc.c index e7dec56b..866eba83 100644 --- a/src/language/stats/roc.c +++ b/src/language/stats/roc.c @@ -393,12 +393,13 @@ accumulate_counts (struct casereader *cutpoint_rdr, struct ccase *cpc; double prev_cp = SYSMIS; - for ( ; (cpc = casereader_read (r) ); case_unref (cpc)) { struct ccase *new_case; const double cp = case_data_idx (cpc, CUTPOINT)->f; + assert (cp != SYSMIS); + /* We don't want duplicates here */ if ( cp == prev_cp ) continue;