forked from OSchip/llvm-project
[BitVector] Define BitWord as uintptr_t
Define BitVector::BitWord as uintptr_t instead of unsigned long, as long does not necessarily translates to a pointer size (especially on 64-bit Visual Studio). Committed on behalf of @ekatz (Ehud Katz) Differential Revision: https://reviews.llvm.org/D69336
This commit is contained in:
parent
09feea972d
commit
ba6e2cb544
|
@ -71,7 +71,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
class BitVector {
|
class BitVector {
|
||||||
typedef unsigned long BitWord;
|
typedef uintptr_t BitWord;
|
||||||
|
|
||||||
enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
|
enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue