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
559c8d4a
Commit
559c8d4a
authored
Oct 23, 2009
by
Uwe Schulzweida
Browse files
streamCopyRecord: check byteorder (bug fix)
parent
b56fc362
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
559c8d4a
2009-10-23 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf:cdfDefXaxis: bug fix for multi generic grids [report: Uwe Mikolajewicz]
* streamCopyRecord: check byteorder (bug fix) [report: Claas Teichmann]
2009-10-15 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
...
...
src/stream_record.c
View file @
559c8d4a
...
...
@@ -423,6 +423,7 @@ void streamCopyRecord(int streamID2, int streamID1)
static
char
func
[]
=
"streamCopyRecord"
;
int
status
=
0
;
int
filetype
=
CDI_UNDEFID
,
filetype1
,
filetype2
;
int
byteorder1
,
byteorder2
;
stream_t
*
streamptr1
;
stream_t
*
streamptr2
;
...
...
@@ -434,8 +435,11 @@ void streamCopyRecord(int streamID2, int streamID1)
filetype1
=
streamptr1
->
filetype
;
filetype2
=
streamptr2
->
filetype
;
byteorder1
=
streamptr1
->
byteorder
;
byteorder2
=
streamptr2
->
byteorder
;
if
(
filetype1
==
filetype2
)
filetype
=
filetype2
;
if
(
filetype1
==
filetype2
&&
byteorder1
==
byteorder2
)
filetype
=
filetype2
;
if
(
filetype
==
FILETYPE_GRB
)
{
...
...
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