Homec4science

Pass MSVC's C4826 warning.

Authored by David Benjamin <davidben@google.com> on Jan 20 2017, 18:54.

Description

Pass MSVC's C4826 warning.

MSVC has an optional warning which flags when 32-bit pointers get cast
into a 64-bit value. This is a little overaggressive I think, but to
ease compiling in projects with aggressive warnings, fix this by just
casting to const void * directly. Modern GCCs seem to compile it just
fine.

Details

Committed
David Benjamin <davidben@google.com>Aug 7 2017, 20:56
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:eb261b4dce67: Merge pull request #1176 from aninf-wo/hethi/typo
Branches
Unknown
Tags
Unknown

Event Timeline

David Benjamin <davidben@google.com> committed R9484:ca6a70c6082f: Pass MSVC's C4826 warning. (authored by David Benjamin <davidben@google.com>).Aug 7 2017, 20:56