Skip to content

Commit

Permalink
change type of MM parameter to g2intu
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Nov 7, 2024
1 parent 1c0416c commit 5d70bba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/g2_addfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ g2_addfield(unsigned char *cgrib, g2int ipdsnum, g2int *ipdstmpl,
g2int ilen, isecnum, i, nbits, temp, left;
g2int ibmprev, j, lcpack, ioctet, newlen, ndpts;
g2int lensec4, lensec5, lensec6, lensec7;
g2int issec3 = 0, isprevbmap = 0, lpos3 = 0, JJ, KK, MM;
g2int issec3 = 0, isprevbmap = 0, lpos3 = 0, JJ, KK;
g2intu MM;
g2int *coordieee;
float *pfld;
gtemplate *mappds, *mapdrs;
Expand Down
2 changes: 1 addition & 1 deletion src/grib2_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void misspack(float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl,
void cmplxpack(float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl,
unsigned char *cpack, g2int *lcpack);
g2int getpoly(unsigned char *csec3, g2int *jj, g2int *kk, g2int *mm);
void specpack(float *fld, g2int ndpts, g2int JJ, g2int KK, g2int MM,
void specpack(float *fld, g2int ndpts, g2int JJ, g2int KK, g2intu MM,
g2int *idrstmpl, unsigned char *cpack, g2int *lcpack);
g2int specunpack(unsigned char *cpack, g2int *idrstmpl, g2int ndpts, g2int JJ,
g2int KK, g2int MM, float *fld);
Expand Down
2 changes: 1 addition & 1 deletion src/specpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @author Stephen Gilbert @date 2002-12-19
*/
void
specpack(float *fld, g2int ndpts, g2int JJ, g2int KK, g2int MM,
specpack(float *fld, g2int ndpts, g2int JJ, g2int KK, g2intu MM,
g2int *idrstmpl, unsigned char *cpack, g2int *lcpack)
{

Expand Down
3 changes: 2 additions & 1 deletion tests/tst_spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ main()
unsigned char cpack[PACKED_LEN];
g2int lcpack;
g2int idrstmpl[10] = {0, 1, 1, 16, 0, 0, 0, 0, 2, 1};
g2int JJ = 1, KK = 1, MM = 1;
g2int JJ = 1, KK = 1;
g2intu MM = 1;
int i;

printf("Packing the data...");
Expand Down

0 comments on commit 5d70bba

Please sign in to comment.