}
void IOBuf::releaseStorage(HeapStorage* storage, uint16_t freeFlags) {
- CHECK_EQ(storage->prefix.magic, kHeapMagic);
+ CHECK_EQ(storage->prefix.magic, static_cast<uint16_t>(kHeapMagic));
// Use relaxed memory order here. If we are unlucky and happen to get
// out-of-date data the compare_exchange_weak() call below will catch