Commit e25f2204 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix alignment of record_t.

parent 85799729
......@@ -151,7 +151,7 @@ typedef struct
int ilevel;
int ilevel2;
int ltype;
int tsteptype;
short tsteptype;
short used;
short varID;
short levelID;
......
......@@ -383,7 +383,7 @@ void cgribexAddRecord(stream_t * streamptr, int param, int *isec1, int *isec2, d
record->ilevel = level1;
record->ilevel2 = level2;
record->ltype = ISEC1_LevelType;
record->tsteptype = tsteptype;
record->tsteptype = (short)tsteptype;
cgribexGetGrid(streamptr, isec2, fsec2, isec4, grid, iret);
......
......@@ -444,7 +444,7 @@ void gribapiAddRecord(stream_t * streamptr, int param, grib_handle *gh,
record->ilevel = level1;
record->ilevel2 = level2;
record->ltype = leveltype1;
record->tsteptype = tsteptype;
record->tsteptype = (short)tsteptype;
record->tiles = tiles ? *tiles : dummy_tiles;
//FIXME: This may leave the variable name unterminated (which is the behavior that I found in the code).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment