From: westcott Date: Wed, 8 Dec 2010 21:51:24 +0000 (+0000) Subject: metastats double* to double fix for windows X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=5c076cc7d3842d8050694918948e023334c9839e metastats double* to double fix for windows --- diff --git a/makefile b/makefile index 36d0d77..aa20f8c 100644 --- a/makefile +++ b/makefile @@ -30,8 +30,8 @@ endif MOTHUR_FILES = "\"../release\"" -RELEASE_DATE = "\"11/02/2010\"" -VERSION = "\"1.14.0\"" +RELEASE_DATE = "\"12/10/2010\"" +VERSION = "\"1.15.0\"" CXXFLAGS += -DRELEASE_DATE=${RELEASE_DATE} -DVERSION=${VERSION} 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