@@ -208,7 +208,7 @@ TEST(PlatformFixedMemoryPoolTest, allocateMemory_allocated_address_is_aligned)
208
208
void * p = 0 ;
209
209
OSWrapper::Error err = pool->allocateMemory (&p);
210
210
LONGS_EQUAL (OSWrapper::OK, err);
211
- LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x07 ));
211
+ LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x03 ));
212
212
}
213
213
FixedMemoryPool::destroy (pool);
214
214
@@ -220,7 +220,7 @@ TEST(PlatformFixedMemoryPoolTest, allocateMemory_allocated_address_is_aligned)
220
220
void * p = 0 ;
221
221
OSWrapper::Error err = pool2->allocateMemory (&p);
222
222
LONGS_EQUAL (OSWrapper::OK, err);
223
- LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x07 ));
223
+ LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x03 ));
224
224
}
225
225
FixedMemoryPool::destroy (pool2);
226
226
}
@@ -466,7 +466,7 @@ TEST(PlatformFixedMemoryPoolTest, tryAllocateMemory_allocated_address_is_aligned
466
466
void * p = 0 ;
467
467
OSWrapper::Error err = pool->tryAllocateMemory (&p);
468
468
LONGS_EQUAL (OSWrapper::OK, err);
469
- LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x07 ));
469
+ LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x03 ));
470
470
}
471
471
FixedMemoryPool::destroy (pool);
472
472
@@ -478,7 +478,7 @@ TEST(PlatformFixedMemoryPoolTest, tryAllocateMemory_allocated_address_is_aligned
478
478
void * p = 0 ;
479
479
OSWrapper::Error err = pool2->tryAllocateMemory (&p);
480
480
LONGS_EQUAL (OSWrapper::OK, err);
481
- LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x07 ));
481
+ LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x03 ));
482
482
}
483
483
FixedMemoryPool::destroy (pool2);
484
484
}
@@ -617,7 +617,7 @@ TEST(PlatformFixedMemoryPoolTest, timedAllocateMemory_allocated_address_is_align
617
617
void * p = 0 ;
618
618
OSWrapper::Error err = pool->timedAllocateMemory (&p, Timeout (100 ));
619
619
LONGS_EQUAL (OSWrapper::OK, err);
620
- LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x07 ));
620
+ LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x03 ));
621
621
}
622
622
FixedMemoryPool::destroy (pool);
623
623
@@ -629,7 +629,7 @@ TEST(PlatformFixedMemoryPoolTest, timedAllocateMemory_allocated_address_is_align
629
629
void * p = 0 ;
630
630
OSWrapper::Error err = pool2->timedAllocateMemory (&p, Timeout (100 ));
631
631
LONGS_EQUAL (OSWrapper::OK, err);
632
- LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x07 ));
632
+ LONGS_EQUAL (0 , (reinterpret_cast <std::uintptr_t >(p) & 0x03 ));
633
633
}
634
634
FixedMemoryPool::destroy (pool2);
635
635
}
0 commit comments