The MSVC compiler complains about implicit conversion of 32-bits constant to
64-bit when using this shiting pattern 1 << (<64-bit expr>).
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LLP64 strikes again. =P
I wonder if sanitizer_common.h should have this in it instead and use it everywhere instead of ((uptr)1): enum : uptr { UPtrOne = 1 };. Seems like a style question for Kostya.
Comment Actions
Or, we could have a specific macro for address space shifting.
#define SHIFT(offset) (((uptr)1) << (offset))
With a better name :)
Comment Actions
kcc@ ? Could you tell me your coding-style preference to fix these shifting issues.
I'll fix them.
Comment Actions
lgtm
Let's fix the warnings now and Kostya can tell us how he'd rather write these checks when he gets back if he has an opinion.