diff options
Diffstat (limited to 'src/H5Tpublic.h')
-rw-r--r-- | src/H5Tpublic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h index 4c1a680..1fc4477 100644 --- a/src/H5Tpublic.h +++ b/src/H5Tpublic.h @@ -20,7 +20,7 @@ #include <H5public.h> #include <H5Ipublic.h> -#define HOFFSET(S,M) ((size_t)((const char*)&S.M-(const char*)&S)) +#define HOFFSET(S,M) (offsetof(S,M)) #define HPOFFSET(P,M) ((size_t)((const char*)&(P->M)-(const char*)P)) /* These are the various classes of data types */ |