fix issues when compiling with clang
[folly.git] / folly / io / IOBuf.cpp
index cf961e7315def377a2a3f7cf89a566884fb2dee2..65f7624deba5eaf5e1fc9bde3da8289e03595ff1 100644 (file)
@@ -123,7 +123,7 @@ void IOBuf::operator delete(void* ptr) {
 }
 
 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