X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftab.c;h=862028a8c5ab56959896e8b9cb8c9deb1f9c1c65;hb=18febf84744dc7ab4248542c2f88d91c01ef3fa1;hp=3166740f2002645b4f3db15deb088a675ba077ad;hpb=5382abe75bbd1689aca8c922fbf084af9f6bd723;p=pspp diff --git a/src/tab.c b/src/tab.c index 3166740f20..862028a8c5 100644 --- a/src/tab.c +++ b/src/tab.c @@ -612,6 +612,11 @@ tab_float (struct tab_table *table, int c, int r, unsigned char opt, assert (table != NULL && w <= 40); + assert (c >= 0); + assert (c < table->nc); + assert (r >= 0); + assert (r < table->nr); + f.type = FMT_F; f.w = w; f.d = d; @@ -1258,7 +1263,7 @@ struct som_table_class tab_table_class = FIXME: Doesn't use r1? Huh? */ static int -render_strip (int x, int y, int r, int c1, int c2, int r1 unused, int r2) +render_strip (int x, int y, int r, int c1, int c2, int r1 UNUSED, int r2) { int x_origin = x;