* w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Jan 2009 11:30:13 +0000 (11:30 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Jan 2009 11:30:13 +0000 (11:30 +0000)
commit5da9424d149367340d9f9190a4f8583a0ba67706
tree68b4898613a1d3ac19dba956c6d40e77824de769
parent21927cd747e124a6ae7270e3453593271ae17392
* w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
  (utc_base): Declare as ULONGLONG, not long double.
  (convert_time_raw): Delete.
  (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
  (initialize_utc_base): New function.
  (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
  (convert_from_time_t): Use initialize_utc_base; compute result with
  64-bit arithmetic.
  (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
src/ChangeLog
src/w32.c