Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
0c55a4da
Commit
0c55a4da
authored
Dec 05, 2014
by
Thomas Jahns
🤸
Browse files
Fix unused argument and implicit conversions in grbUnzipRecord.
parent
434fc22c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_grb.c
View file @
0c55a4da
...
...
@@ -230,7 +230,7 @@ int grbUnzipRecord(unsigned char *gribbuffer, size_t *gribsize)
igribsize
=
*
gribsize
;
ogribsize
=
*
gribsize
;
if
(
(
izip
=
gribGetZip
(
igribsize
,
gribbuffer
,
&
unzipsize
))
>
0
)
if
(
(
izip
=
gribGetZip
(
(
long
)
igribsize
,
gribbuffer
,
&
unzipsize
))
>
0
)
{
zip
=
izip
;
if
(
izip
==
128
)
/* szip */
...
...
@@ -254,7 +254,7 @@ int grbUnzipRecord(unsigned char *gribbuffer, size_t *gribsize)
unzipsize
+=
100
;
/* need 0 to 1 bytes for rounding of bds */
ogribsize
=
gribUnzip
(
gribbuffer
,
unzipsize
,
itmpbuffer
,
igribsize
);
ogribsize
=
(
size_t
)
gribUnzip
(
gribbuffer
,
unzipsize
,
itmpbuffer
,
(
long
)
igribsize
);
free
(
itmpbuffer
);
...
...
@@ -547,6 +547,7 @@ size_t grbEncode(int filetype, int memtype, int varID, int levelID, int vlistID,
#else
Error
(
"GRIB_API support not compiled in!"
);
(
void
)
gribContainer
;
(
void
)
comptype
;
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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