Added fixes for Visual Studio 10

This commit is contained in:
Ward Fisher 2017-01-10 13:54:09 -07:00
parent 9a1f1a92cd
commit 34161aab69
2 changed files with 24 additions and 22 deletions

View File

@ -3664,11 +3664,12 @@ nc4_rec_match_dimscales(NC_GRP_INFO_T *grp)
* try and find a dimension for them. */
for (i=0; i < grp->vars.nelems; i++)
{
int ndims;
int d;
var = grp->vars.value[i];
if (!var) continue;
/* Check all vars and see if dim[i] != NULL if dimids[i] valid. */
int ndims = var->ndims;
int d;
ndims = var->ndims;
for (d = 0; d < ndims; d++)
{
if (var->dim[d] == NULL) {

View File

@ -600,6 +600,7 @@ computesize(Symbol* tsym)
{
int i;
int offset = 0;
int largealign;
unsigned long totaldimsize;
if(tsym->touched) return;
tsym->touched=1;
@ -637,7 +638,7 @@ computesize(Symbol* tsym)
/* now compute the size of the compound based on*/
/* what user specified*/
offset = 0;
int largealign = 1;
largealign = 1;
for(i=0;i<listlength(tsym->subnodes);i++) {
Symbol* field = (Symbol*)listget(tsym->subnodes,i);
/* only support 'c' alignment for now*/