mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 22:15:18 +00:00
Hush a noisy warning from GCC 4.2 about overflow during conversion by using
the type "unsigned" instead of uintptr_t for a 1-bit structure field. llvm-svn: 40066
This commit is contained in:
parent
3b1129af78
commit
bcbcea4547
@ -50,12 +50,12 @@ namespace {
|
||||
struct MemoryRangeHeader {
|
||||
/// ThisAllocated - This is true if this block is currently allocated. If
|
||||
/// not, this can be converted to a FreeRangeHeader.
|
||||
intptr_t ThisAllocated : 1;
|
||||
unsigned ThisAllocated : 1;
|
||||
|
||||
/// PrevAllocated - Keep track of whether the block immediately before us is
|
||||
/// allocated. If not, the word immediately before this header is the size
|
||||
/// of the previous block.
|
||||
intptr_t PrevAllocated : 1;
|
||||
unsigned PrevAllocated : 1;
|
||||
|
||||
/// BlockSize - This is the size in bytes of this memory block,
|
||||
/// including this header.
|
||||
|
Loading…
Reference in New Issue
Block a user