Skip to content
GitLab
Menu
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
339dfae0
Commit
339dfae0
authored
Aug 07, 2014
by
Thomas Jahns
🤸
Browse files
Fix implicit type conversions in extRead.
parent
79d29069
Changes
1
Show whitespace changes
Inline
Side-by-side
src/extralib.c
View file @
339dfae0
...
...
@@ -403,7 +403,6 @@ int extRead(int fileID, void *ext)
size_t
blocklen
,
blocklen2
;
size_t
i
;
char
tempheader
[
32
];
int
hprec
,
dprec
;
void
*
buffer
;
int
buffersize
;
int
byteswap
;
...
...
@@ -426,9 +425,9 @@ int extRead(int fileID, void *ext)
if
(
EXT_Debug
)
Message
(
"blocklen = %lu"
,
blocklen
);
hprec
=
blocklen
/
EXT_HEADER_LEN
;
size_t
hprec
=
blocklen
/
EXT_HEADER_LEN
;
extp
->
prec
=
hprec
;
extp
->
prec
=
(
int
)
hprec
;
switch
(
hprec
)
{
...
...
@@ -484,7 +483,7 @@ int extRead(int fileID, void *ext)
else
buffer
=
extp
->
buffer
;
dprec
=
blocklen
/
extp
->
datasize
;
size_t
dprec
=
blocklen
/
extp
->
datasize
;
if
(
dprec
==
hprec
)
{
...
...
Write
Preview
Supports
Markdown
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