From 1830a3936b12e23cdc1e1e2fe0bf0a7fc951c6be Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 30 Sep 2024 02:22:33 -0400 Subject: [PATCH] match ptrdiff_t --- CMakeLists.txt | 2 +- include/blt/iterator/zip.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cd6c1f..6336797 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/include/blt/iterator/zip.h b/include/blt/iterator/zip.h index a75ff8e..b4e6efb 100644 --- a/include/blt/iterator/zip.h +++ b/include/blt/iterator/zip.h @@ -254,7 +254,7 @@ namespace blt if constexpr (check) { return Derived{get_base(begin), - get_base(begin + std::min(static_cast(n), std::distance(begin, end)))}; + get_base(begin + std::min(static_cast(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(n), std::distance(begin, end))}; + return Derived{begin + std::min(static_cast(n), std::distance(begin, end))}; } else { return Derived{begin + n, end};