mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
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.
This commit is contained in:
parent
6e954fa2ce
commit
5421016565
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user