Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
18b3bd9b
Commit
18b3bd9b
authored
Feb 24, 2011
by
Uwe Schulzweida
Browse files
added cast to long int
parent
e0a812d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
18b3bd9b
...
...
@@ -46,12 +46,12 @@ int gribapiGetGridType(grib_handle *gh)
switch
(
gribgridtype
)
{
case
GRIB2_GTYPE_LATLON
:
{
GRIB_CHECK
(
grib_get_long
(
gh
,
"Ni"
,
&
lpar
),
0
);
if
(
lpar
==
GRIB_MISSING_LONG
)
break
;
if
(
lpar
==
(
long
)
GRIB_MISSING_LONG
)
break
;
}
case
GRIB2_GTYPE_LATLON_ROT
:
{
gridtype
=
GRID_LONLAT
;
break
;
}
case
GRIB2_GTYPE_LCC
:
{
gridtype
=
GRID_LCC
;
break
;
}
case
GRIB2_GTYPE_GAUSSIAN
:
{
GRIB_CHECK
(
grib_get_long
(
gh
,
"Ni"
,
&
lpar
),
0
);
if
(
lpar
==
GRIB_MISSING_LONG
)
if
(
lpar
==
(
long
)
GRIB_MISSING_LONG
)
gridtype
=
GRID_GAUSSIAN_REDUCED
;
else
gridtype
=
GRID_GAUSSIAN
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment