From 8bfed8aae444f23b493f641ea45b257b2498d79c Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Wed, 22 Jun 2022 10:48:51 -0700 Subject: Converts __int64 to LONGLONG in LARGE_INTEGER union members on Windows (#1816) --- src/H5FDcore.c | 2 +- src/H5FDlog.c | 2 +- src/H5FDsec2.c | 2 +- src/H5FDstdio.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/H5FDcore.c b/src/H5FDcore.c index ebf9921..20bb5f2 100644 --- a/src/H5FDcore.c +++ b/src/H5FDcore.c @@ -1607,7 +1607,7 @@ H5FD__core_truncate(H5FD_t *_file, hid_t H5_ATTR_UNUSED dxpl_id, hbool_t closing BOOL bError; /* Boolean error flag */ /* Windows uses this odd QuadPart union for 32/64-bit portability */ - li.QuadPart = (__int64)file->eoa; + li.QuadPart = (LONGLONG)file->eoa; /* Extend the file to make sure it's large enough. * diff --git a/src/H5FDlog.c b/src/H5FDlog.c index 28ba5d8..90c4d0f 100644 --- a/src/H5FDlog.c +++ b/src/H5FDlog.c @@ -1626,7 +1626,7 @@ H5FD__log_truncate(H5FD_t *_file, hid_t H5_ATTR_UNUSED dxpl_id, hbool_t H5_ATTR_ */ /* Windows uses this odd QuadPart union for 32/64-bit portability */ - li.QuadPart = (__int64)file->eoa; + li.QuadPart = (LONGLONG)file->eoa; /* Extend the file to make sure it's large enough. * diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c index 1d97f83..e83411c 100644 --- a/src/H5FDsec2.c +++ b/src/H5FDsec2.c @@ -915,7 +915,7 @@ H5FD__sec2_truncate(H5FD_t *_file, hid_t H5_ATTR_UNUSED dxpl_id, hbool_t H5_ATTR BOOL bError; /* Boolean error flag */ /* Windows uses this odd QuadPart union for 32/64-bit portability */ - li.QuadPart = (__int64)file->eoa; + li.QuadPart = (LONGLONG)file->eoa; /* Extend the file to make sure it's large enough. * diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c index 6624685..39dba47 100644 --- a/src/H5FDstdio.c +++ b/src/H5FDstdio.c @@ -1066,7 +1066,7 @@ H5FD_stdio_truncate(H5FD_t *_file, hid_t /*UNUSED*/ dxpl_id, hbool_t /*UNUSED*/ rewind(file->fp); /* Windows uses this odd QuadPart union for 32/64-bit portability */ - li.QuadPart = (__int64)file->eoa; + li.QuadPart = (LONGLONG)file->eoa; /* Extend the file to make sure it's large enough. * -- cgit v0.12