Make a few implicit truncations either explicit, or not truncate
[folly.git] / folly / experimental / JemallocNodumpAllocator.cpp
index 94db0e7204c203940c8281d1657d1c5f0a253c9a..80f8c2723dc870169c990591b7931372a702ceaa 100644 (file)
@@ -108,7 +108,7 @@ void JemallocNodumpAllocator::deallocate(void* p) {
 
 void JemallocNodumpAllocator::deallocate(void* p, void* userData) {
   const uint64_t flags = reinterpret_cast<uint64_t>(userData);
-  dallocx != nullptr ? dallocx(p, flags) : free(p);
+  dallocx != nullptr ? dallocx(p, static_cast<int>(flags)) : free(p);
 }
 
 JemallocNodumpAllocator& globalJemallocNodumpAllocator() {