categoricals: Make parameter to categoricals_done() const.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 12 Dec 2010 06:07:14 +0000 (22:07 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 12 Dec 2010 06:10:45 +0000 (22:10 -0800)
commit2a02ce128ba2c77fd003e81195730de4f82d3baa
treebb23fa357938421b4cf6e90dc6b6be546ea88e3b
parent3c5fcaa67efcee56981c16b543fb9f679787a486
categoricals: Make parameter to categoricals_done() const.

From a high-level point of view, categoricals_done() does not actually
mutate any data in a categoricals object.  Instead, it just computes a
cache.  So it seems reasonable to make it take a "const" parameter, and
this fixes a warning:

oneway.c: In function ‘run_oneway’:
oneway.c:502: warning: initialization discards qualifiers from pointer target type
src/language/stats/oneway.c
src/math/categoricals.c
src/math/categoricals.h