• Juanma Barranquero's avatar
    * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766) · 5da9424d
    Juanma Barranquero authored
      (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.
    5da9424d
ChangeLog 592 KB