From: John Darrington Date: Sun, 5 May 2019 10:19:42 +0000 (+0200) Subject: graph.c (run_barchart): Add assertion. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9baf52ef8219c1223457d35b503dcedddee0338;p=pspp graph.c (run_barchart): Add assertion. We don't support multidimensional barcharts. --- diff --git a/src/language/stats/graph.c b/src/language/stats/graph.c index 2eeccca206..2d60467845 100644 --- a/src/language/stats/graph.c +++ b/src/language/stats/graph.c @@ -416,6 +416,7 @@ run_barchart (struct graph *cmd, struct casereader *input) struct freq **cells = NULL; int n_cells = 0; + assert (cmd->n_by_vars <= 2); for (grouper = casegrouper_create_vars (input, cmd->by_var, cmd->n_by_vars); casegrouper_get_next_group (grouper, &group);