diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-06 20:22:18 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-06 20:22:18 (GMT) |
commit | 5eba819f39c52c0605c269cc2a117dc56553916a (patch) | |
tree | f274868012c8976bcd9c9817a0b86bbfb7a62a96 /src | |
parent | 34267d86317eec35fad5a75d8a4e268c979be59f (diff) | |
download | hdf5-5eba819f39c52c0605c269cc2a117dc56553916a.zip hdf5-5eba819f39c52c0605c269cc2a117dc56553916a.tar.gz hdf5-5eba819f39c52c0605c269cc2a117dc56553916a.tar.bz2 |
Avoid going back and forth between signed and unsigned in the same expression
with some casts and an unsigned constant. This quiets GCC warnings, especially
-Wconversion, IIRC.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5time_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5time_private.h b/src/H5time_private.h index 44c83b3..30cbaf1 100644 --- a/src/H5time_private.h +++ b/src/H5time_private.h @@ -103,7 +103,7 @@ (vsp)->tv_nsec += 1000000000L; \ } \ } while (/* CONSTCOND */ 0) -#define timespec2ns(x) (((uint64_t)(x)->tv_sec) * 1000000000L + (x)->tv_nsec) +#define timespec2ns(x) (((uint64_t)(x)->tv_sec) * 1000000000UL + (uint64_t)(x)->tv_nsec) #endif #endif /* _H5time_private_H */ |