News for hackers. Stuff that matters.
Re:Why is my x64 process getting heap address above 4GB on W... by sjolsen on Saturday July 11, 2015 @05:00PM (#9871548)
I'd suggest that even if it's absolutely necessary, one could at least put something like

    #if (ULONG_MAX < UINTPTR_MAX) && !defined (SUPPRESS_TRUNCATION_ERROR)
    #error Truncating pointers to long is a bad idea here
    #endif
in some source file or another, just so you have some indication whether or not things are going to break when you change the build environment.
Re:Why is my x64 process getting heap address above 4GB on W... by cpeterso on Sunday July 12, 2015 @02:30AM (#9872754)

  static_assert(sizeof(DWORD) == sizeof(void*), "assume 32-bit pointers");
Re:Why is my x64 process getting heap address above 4GB on W... by sjolsen on Thursday July 16, 2015 @09:09PM (#9900837)
If we're talking about "undocumented legacy code doing crazy casts," static_assert is probably not an option.