ONEWAY: Fix warning for passing "const" pointer as non-const parameter.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 12 Dec 2010 05:13:03 +0000 (21:13 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 12 Dec 2010 06:10:45 +0000 (22:10 -0800)
src/language/stats/oneway.c

index 908da803c4bc389cf2dffa891dbbb3e5ee37f2fb..f390a3c8aa5a3a420bb9c0cf0c207013f70f6e12 100644 (file)
@@ -392,11 +392,11 @@ run_oneway (const struct oneway_spec *cmd,
 
   for (v = 0; v < cmd->n_vars; ++v)
     {
-      ws.vws[v].cat = categoricals_create (&cmd->indep_var, 1,
-                                                      cmd->wv, cmd->exclude, 
-                                                      makeit,
-                                                      updateit,
-                                                      cmd->vars[v], ws.dd_total[v]);
+      ws.vws[v].cat = categoricals_create (&cmd->indep_var, 1, cmd->wv,
+                                           cmd->exclude, makeit, updateit,
+                                           CONST_CAST (struct variable *,
+                                                       cmd->vars[v]),
+                                           ws.dd_total[v]);
 
       ws.vws[v].cov = covariance_2pass_create (1, &cmd->vars[v],
                                               ws.vws[v].cat,