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
beeb2819
Commit
beeb2819
authored
Jan 04, 2019
by
Uwe Schulzweida
Browse files
binWriteF77Block: fix last commit.
parent
c7508d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/binary.c
View file @
beeb2819
...
...
@@ -98,13 +98,13 @@ void binWriteF77Block(int fileID, int byteswap, size_t blocksize)
}
else
{
for
(
int
i
=
3
;
i
>
=
0
;
--
i
)
f77block
[
i
]
=
(
unsigned
char
)
(
ublocksize
>>
s
[
i
]);
for
(
int
i
=
0
;
i
<
=
3
;
++
i
)
f77block
[
3
-
i
]
=
(
unsigned
char
)
(
ublocksize
>>
s
[
i
]);
}
break
;
case
CDI_LITTLEENDIAN
:
if
(
byteswap
)
{
for
(
int
i
=
3
;
i
>
=
0
;
--
i
)
f77block
[
i
]
=
(
unsigned
char
)
(
ublocksize
>>
s
[
i
]);
for
(
int
i
=
0
;
i
<
=
3
;
++
i
)
f77block
[
3
-
i
]
=
(
unsigned
char
)
(
ublocksize
>>
s
[
i
]);
}
else
{
...
...
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