diff --git a/Source/cmList.h b/Source/cmList.h index c29aae7ba8..e1070960bc 100644 --- a/Source/cmList.h +++ b/Source/cmList.h @@ -6,7 +6,7 @@ #include "cmConfigure.h" // IWYU pragma: keep #include -#include +#include #include #include #include @@ -47,7 +47,7 @@ public: using value_type = container_type::value_type; using allocator_type = container_type::allocator_type; - using index_type = std::intptr_t; + using index_type = std::ptrdiff_t; using size_type = container_type::size_type; using difference_type = container_type::difference_type; using reference = container_type::reference;