From: Ben Pfaff Date: Mon, 13 Aug 2007 00:43:48 +0000 (+0000) Subject: (casereader_read): Don't require cases read by a casereader to be X-Git-Tag: v0.6.0~315 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a802b79f217dfa51749c1f2b594c061b5d85120;p=pspp-builds.git (casereader_read): Don't require cases read by a casereader to be exactly the expected size: as long as they're big enough, it's OK. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index 4d4ff743..176a6fc0 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,9 @@ +2007-08-12 Ben Pfaff + + * casereader.c (casereader_read): Don't require cases read by a + casereader to be exactly the expected size: as long as they're big + enough, it's OK. + 2007-08-12 Ben Pfaff Make casewriters keep track of the number of `union value's in @@ -12,7 +18,6 @@ (casewriter_write): Check that the case passed in is big enough. (casewriter_get_value_cnt): New function. (casewriter_create): Add value_cnt parameter. - 2007-08-09 Ben Pfaff diff --git a/src/data/casereader.c b/src/data/casereader.c index 8521ec91..3be1042d 100644 --- a/src/data/casereader.c +++ b/src/data/casereader.c @@ -58,7 +58,7 @@ casereader_read (struct casereader *reader, struct ccase *c) { if (reader->case_cnt != 0 && reader->class->read (reader, reader->aux, c)) { - assert (case_get_value_cnt (c) == reader->value_cnt); + assert (case_get_value_cnt (c) >= reader->value_cnt); if (reader->case_cnt != CASENUMBER_MAX) reader->case_cnt--; return true;