X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=metastats2.c;h=8f5ce39eb9d5523e10dee238abbf65ed8530cbbb;hb=5c076cc7d3842d8050694918948e023334c9839e;hp=a6424f5fa95086083d4c09658f7c9e2338d2381c;hpb=4de64268dd8f64b82f3c4e804cac72ffcb6fd583;p=mothur.git diff --git a/metastats2.c b/metastats2.c index a6424f5..8f5ce39 100644 --- a/metastats2.c +++ b/metastats2.c @@ -34,8 +34,8 @@ int metastat_main (char* outputFileName, int numRows, int numCols, double thresh storage[i] = malloc(9*sizeof(double)); } - pmatrix = (double *) malloc(size*sizeof(double *)); - permuted = (double *) malloc(size*sizeof(double *)); + pmatrix = (double *) malloc(size*sizeof(double)); + permuted = (double *) malloc(size*sizeof(double)); @@ -133,9 +133,9 @@ int metastat_main (char* outputFileName, int numRows, int numCols, double thresh //changing ptt_size to row double * permuted_ttests, * pvalues, * tinitial; - permuted_ttests = (double *) malloc(size*sizeof(double *)); - pvalues = (double *) malloc(size*sizeof(double *)); - tinitial = (double *) malloc(size*sizeof(double *)); + permuted_ttests = (double *) malloc(size*sizeof(double)); + pvalues = (double *) malloc(size*sizeof(double)); + tinitial = (double *) malloc(size*sizeof(double)); for(i=0;i.999999999){ @@ -295,7 +295,7 @@ printf("here before fexact2\n"); for (i = 0; i