mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-11 16:40:36 +08:00
Added fixes for Visual Studio 10
This commit is contained in:
parent
9a1f1a92cd
commit
34161aab69
@ -3664,11 +3664,12 @@ nc4_rec_match_dimscales(NC_GRP_INFO_T *grp)
|
|||||||
* try and find a dimension for them. */
|
* try and find a dimension for them. */
|
||||||
for (i=0; i < grp->vars.nelems; i++)
|
for (i=0; i < grp->vars.nelems; i++)
|
||||||
{
|
{
|
||||||
|
int ndims;
|
||||||
|
int d;
|
||||||
var = grp->vars.value[i];
|
var = grp->vars.value[i];
|
||||||
if (!var) continue;
|
if (!var) continue;
|
||||||
/* Check all vars and see if dim[i] != NULL if dimids[i] valid. */
|
/* Check all vars and see if dim[i] != NULL if dimids[i] valid. */
|
||||||
int ndims = var->ndims;
|
ndims = var->ndims;
|
||||||
int d;
|
|
||||||
for (d = 0; d < ndims; d++)
|
for (d = 0; d < ndims; d++)
|
||||||
{
|
{
|
||||||
if (var->dim[d] == NULL) {
|
if (var->dim[d] == NULL) {
|
||||||
|
@ -600,6 +600,7 @@ computesize(Symbol* tsym)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
int largealign;
|
||||||
unsigned long totaldimsize;
|
unsigned long totaldimsize;
|
||||||
if(tsym->touched) return;
|
if(tsym->touched) return;
|
||||||
tsym->touched=1;
|
tsym->touched=1;
|
||||||
@ -637,7 +638,7 @@ computesize(Symbol* tsym)
|
|||||||
/* now compute the size of the compound based on*/
|
/* now compute the size of the compound based on*/
|
||||||
/* what user specified*/
|
/* what user specified*/
|
||||||
offset = 0;
|
offset = 0;
|
||||||
int largealign = 1;
|
largealign = 1;
|
||||||
for(i=0;i<listlength(tsym->subnodes);i++) {
|
for(i=0;i<listlength(tsym->subnodes);i++) {
|
||||||
Symbol* field = (Symbol*)listget(tsym->subnodes,i);
|
Symbol* field = (Symbol*)listget(tsym->subnodes,i);
|
||||||
/* only support 'c' alignment for now*/
|
/* only support 'c' alignment for now*/
|
||||||
|
Loading…
Reference in New Issue
Block a user