Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
559c8d4a
Commit
559c8d4a
authored
15 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
streamCopyRecord: check byteorder (bug fix)
parent
b56fc362
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/stream_record.c
+5
-1
5 additions, 1 deletion
src/stream_record.c
with
6 additions
and
1 deletion
ChangeLog
+
1
−
0
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>
...
...
This diff is collapsed.
Click to expand it.
src/stream_record.c
+
5
−
1
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment