From: Ben Pfaff Date: Tue, 22 Jul 2014 04:42:08 +0000 (-0700) Subject: table-paste: Add error-checking assertion to table_paste(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=563b6160d2ed20120fbb62410a65e03c28537383 table-paste: Add error-checking assertion to table_paste(). --- diff --git a/src/output/table-paste.c b/src/output/table-paste.c index b56760cd1d..c1054d1369 100644 --- a/src/output/table-paste.c +++ b/src/output/table-paste.c @@ -148,6 +148,8 @@ table_paste (struct table *a, struct table *b, enum table_axis orientation) if (b == NULL) return a; + assert (a->n[!orientation] == b->n[!orientation]); + /* Handle tables that know how to paste themselves. */ if (!table_is_shared (a) && !table_is_shared (b) && a != b) {