[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] 9d52fe: Thu shalt not cast a FILETIME to unsigned __int64

Nicolas Cellier noreply at github.com
Sun Mar 29 10:24:54 UTC 2020


  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 9d52fef2240b7bdf6cfa1a7d6cf8c967220f0e85
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/9d52fef2240b7bdf6cfa1a7d6cf8c967220f0e85
  Author: Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>
  Date:   2020-03-29 (Sun, 29 Mar 2020)

  Changed paths:
    M platforms/win32/vm/sqWin32Heartbeat.c

  Log Message:
  -----------
  Thu shalt not cast a FILETIME to unsigned __int64

pointer aliasing apart, such cast is explicitly discouraged in MSDN https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime

> Do not cast a pointer to a FILETIME structure to either a ULARGE_INTEGER* or __int64* value because it can cause alignment faults on 64-bit Windows.




More information about the Vm-dev mailing list