Fix a bunch of sign conversion warnings from ncgen.y

This commit is contained in:
Peter Hill 2023-11-30 17:16:54 +00:00
parent 6c249365f0
commit c80d71213d
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
* $Header: /upc/share/CVS/netcdf-3/ncgen3/init.c,v 1.6 1997/05/23 11:41:14 russ Exp $
*********************************************************************/
#include <stddef.h>
#include <stdio.h>
#include <netcdf.h>
#include "generic.h"
@ -23,7 +24,7 @@ int natts; /* number of attributes */
int nvdims; /* number of dimensions for variables */
int dimnum; /* dimension number index for variables */
int varnum; /* variable number index for attributes */
int valnum; /* value number index for attributes */
size_t valnum; /* value number index for attributes */
int rec_dim; /* number of the unlimited dimension, if any */
size_t var_len; /* variable length (product of dimensions) */
size_t rec_len; /* number of elements for a record of data */

View File

@ -6,6 +6,7 @@
* $Header: /upc/share/CVS/netcdf-3/ncgen3/ncgen.h,v 1.8 1997/07/07 18:27:04 russ Exp $
*********************************************************************/
#include <stddef.h>
#define MAX_NC_ATTSIZE 20000 /* max size of attribute (for ncgen) */
#define MAXTRST 5000 /* max size of string value (for ncgen) */
@ -23,7 +24,7 @@ extern int natts; /* number of attributes */
extern int nvdims; /* number of dimensions for variables */
extern int dimnum; /* dimension number index for variables */
extern int varnum; /* variable number index for attributes */
extern int valnum; /* number of values specified for variable */
extern size_t valnum; /* number of values specified for variable */
extern int rec_dim; /* number of the unlimited dimension, if any */
extern size_t rec_len; /* number of elements for a record of data */
extern size_t var_len; /* variable length (product of dimensions) */