Add assertion to check code consitency
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Jul 2009 12:20:07 +0000 (14:20 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Jul 2009 12:20:07 +0000 (14:20 +0200)
src/language/stats/roc.c

index e7dec56b8f1a498c61d59139cdeec5f65abd22b6..866eba83f3d7daebf4524f41fad839c6534e6f1a 100644 (file)
@@ -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;