diff --git a/containers_cpp/test/hazard_pointer_test.cc b/containers_cpp/test/hazard_pointer_test.cc index 576562b..b3c3c94 100644 --- a/containers_cpp/test/hazard_pointer_test.cc +++ b/containers_cpp/test/hazard_pointer_test.cc @@ -74,7 +74,7 @@ int* IntObjectTestPool::Allocate() { } void IntObjectTestPool::Release(int* object_pointer) { - int cell = (int) (object_pointer - simplePoolObjects); + int cell = static_cast(object_pointer - simplePoolObjects); simplePool[cell].Store(FREE_MARKER); }