/[pspp]/pspp/src/t-test.q
ViewVC logotype

Diff of /pspp/src/t-test.q

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.46 by blp, Mon Oct 24 02:51:31 2005 UTC revision 1.47 by blp, Wed Oct 26 05:06:14 2005 UTC
# Line 310  cmd_t_test(void) Line 310  cmd_t_test(void)
310            assert(cmd.n_variables == 0);            assert(cmd.n_variables == 0);
311            cmd.n_variables = hsh_count(hash);            cmd.n_variables = hsh_count(hash);
312    
313            cmd.v_variables = xrealloc(cmd.v_variables,            cmd.v_variables = xnrealloc (cmd.v_variables, cmd.n_variables,
314                                       sizeof(struct variable) * cmd.n_variables);                                         sizeof *cmd.v_variables);
315            /* Iterate through the hash */            /* Iterate through the hash */
316            for (i=0,v = (struct variable *) hsh_first(hash,&hi);            for (i=0,v = (struct variable *) hsh_first(hash,&hi);
317                 v != 0;                 v != 0;
# Line 509  tts_custom_pairs (struct cmd_t_test *cmd Line 509  tts_custom_pairs (struct cmd_t_test *cmd
509    
510    
511    /* Allocate storage for the pairs */    /* Allocate storage for the pairs */
512    pairs = xrealloc(pairs, sizeof(struct pair) * (n_pairs + n_pairs_local) );    pairs = xnrealloc (pairs, n_pairs + n_pairs_local, sizeof *pairs);
513    
514    /* Populate the pairs with the appropriate variables */    /* Populate the pairs with the appropriate variables */
515    if ( paired )    if ( paired )
# Line 1711  group_precalc (struct cmd_t_test *cmd ) Line 1711  group_precalc (struct cmd_t_test *cmd )
1711        for (j=0 ; j < 2 ; ++j)        for (j=0 ; j < 2 ; ++j)
1712          {          {
1713    
1714            struct group_statistics *gs = (struct group_statistics *)            struct group_statistics *gs = xmalloc (sizeof *gs);
             xmalloc (sizeof(struct group_statistics));  
1715    
1716            gs->sum = 0;            gs->sum = 0;
1717            gs->n = 0;            gs->n = 0;

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26