Commit 339dfae0 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit type conversions in extRead.

parent 79d29069
...@@ -403,7 +403,6 @@ int extRead(int fileID, void *ext) ...@@ -403,7 +403,6 @@ int extRead(int fileID, void *ext)
size_t blocklen, blocklen2; size_t blocklen, blocklen2;
size_t i; size_t i;
char tempheader[32]; char tempheader[32];
int hprec, dprec;
void *buffer; void *buffer;
int buffersize; int buffersize;
int byteswap; int byteswap;
...@@ -426,9 +425,9 @@ int extRead(int fileID, void *ext) ...@@ -426,9 +425,9 @@ int extRead(int fileID, void *ext)
if ( EXT_Debug ) if ( EXT_Debug )
Message("blocklen = %lu", blocklen); 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 ) switch ( hprec )
{ {
...@@ -484,7 +483,7 @@ int extRead(int fileID, void *ext) ...@@ -484,7 +483,7 @@ int extRead(int fileID, void *ext)
else else
buffer = extp->buffer; buffer = extp->buffer;
dprec = blocklen / extp->datasize; size_t dprec = blocklen / extp->datasize;
if ( dprec == hprec ) if ( dprec == hprec )
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment