Skip to content

Commit

Permalink
Use int64_t instead of __int64
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Jul 16, 2022
1 parent a62fd8f commit a2fda45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libsrc/posixio.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stddef.h>

#ifdef HAVE_FCNTL_H
#include <fcntl.h>
Expand Down Expand Up @@ -120,7 +121,7 @@ static off_t nc_get_filelen(const int fd) {
off_t flen;

#ifdef HAVE_FILE_LENGTH_I64
__int64 file_len = 0;
int64_t file_len = 0;
if ((file_len = _filelengthi64(fd)) < 0) {
return file_len;
}
Expand Down Expand Up @@ -1829,7 +1830,7 @@ ncio_px_filesize(ncio *nciop, off_t *filesizep)
Use _filelengthi64 isntead. */
#ifdef HAVE_FILE_LENGTH_I64

__int64 file_len = 0;
int64_t file_len = 0;
if( (file_len = _filelengthi64(nciop->fd)) < 0) {
return errno;
}
Expand Down

0 comments on commit a2fda45

Please sign in to comment.