Mercurial > emacs
changeset 72059:7b3a19a8bfdb
(convert_time): Use explicit long double constants to ensure long double
arithmetics is used throughout.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 21 Jul 2006 17:27:34 +0000 |
parents | 92e52d7e4ecd |
children | 337f9ac874e6 |
files | src/w32.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32.c Fri Jul 21 12:22:32 2006 +0000 +++ b/src/w32.c Fri Jul 21 17:27:34 2006 +0000 @@ -2256,16 +2256,17 @@ SystemTimeToFileTime (&st, &utc_base_ft); utc_base = (long double) utc_base_ft.dwHighDateTime - * 4096 * 1024 * 1024 + utc_base_ft.dwLowDateTime; + * 4096.0L * 1024.0L * 1024.0L + utc_base_ft.dwLowDateTime; init = 1; } if (CompareFileTime (&ft, &utc_base_ft) < 0) return 0; - ret = (long double) ft.dwHighDateTime * 4096 * 1024 * 1024 + ft.dwLowDateTime; + ret = (long double) ft.dwHighDateTime + * 4096.0L * 1024.0L * 1024.0L + ft.dwLowDateTime; ret -= utc_base; - return (time_t) (ret * 1e-7); + return (time_t) (ret * 1e-7L); } void