Commit 1f3c63c2 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

fixup: Improve alignment of grid_llc_t.

* This is an amendment to 77f5471d to make implicit shortening
  conversions explicit (prevents compiler warnings about what we
  know is benign).
parent 6eba4960
......@@ -634,7 +634,7 @@ void gribapiGetGrid(grib_handle *gh, grid_t *grid)
FAIL_ON_GRIB_ERROR(grib_get_long, gh, "projectionCenterFlag", &lpar);
grid->lcc.projflag = (int) lpar;
FAIL_ON_GRIB_ERROR(grib_get_long, gh, "scanningMode", &lpar);
grid->lcc.scanflag = (int) lpar;
grid->lcc.scanflag = (short) lpar;
}
grid->x.flag = 0;
......
......@@ -299,7 +299,7 @@ void cgribexGetGrid(stream_t *streamptr, int *isec2, int *isec4, grid_t *grid, i
grid->lcc.lat1 = ISEC2_Lambert_LatS1 * 0.001;
grid->lcc.lat2 = ISEC2_Lambert_LatS2 * 0.001;
grid->lcc.projflag = ISEC2_Lambert_ProjFlag;
grid->lcc.scanflag = ISEC2_ScanFlag;
grid->lcc.scanflag = (short)ISEC2_ScanFlag;
grid->x.flag = 0;
grid->y.flag = 0;
......
Supports Markdown
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