From 5421016565ae362abaa61d67471fde5dd4809d15 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Mon, 9 Sep 2013 11:34:33 -0600 Subject: [PATCH] For some reason, the stack-allocated memory stopped working on Windows, for all versions of the file, not just the HEAD. Changing it over to heap-allocated memory seems to have fixed the problem. No Idea why this sprang up out of nowhere. --- ncdap_test/test_nstride_cached.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ncdap_test/test_nstride_cached.c b/ncdap_test/test_nstride_cached.c index b84d3da3d..bcb08926e 100644 --- a/ncdap_test/test_nstride_cached.c +++ b/ncdap_test/test_nstride_cached.c @@ -71,7 +71,8 @@ main() int pass = 1; int idim, ndim; - float dat[301060]; + //float dat[301060]; + float *dat = (float*)malloc(sizeof(float)*301060); float sdat[10]; for (idim=0; idim<5; idim++) { @@ -259,6 +260,7 @@ if(verbose) { } printf("*** PASS\n"); + free(dat); exit(0); }