match ptrdiff_t

v1
Brett 2024-09-30 02:22:33 -04:00
parent 2b375fc8f3
commit 1830a3936b
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake)
set(BLT_VERSION 1.0.5)
set(BLT_VERSION 1.0.6)
set(BLT_TARGET BLT)

View File

@ -254,7 +254,7 @@ namespace blt
if constexpr (check)
{
return Derived{get_base(begin),
get_base(begin + std::min(static_cast<blt::size_t>(n), std::distance(begin, end)))};
get_base(begin + std::min(static_cast<blt::ptrdiff_t>(n), std::distance(begin, end)))};
} else
{
return Derived{get_base(begin), get_base(begin + n)};
@ -285,7 +285,7 @@ namespace blt
{
if constexpr (check)
{
return Derived{begin + std::min(static_cast<blt::size_t>(n), std::distance(begin, end))};
return Derived{begin + std::min(static_cast<blt::ptrdiff_t>(n), std::distance(begin, end))};
} else
{
return Derived{begin + n, end};