From e68e4f8ddec3a9258bec0a99f2c2c048ab83edc5 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 14 Oct 2021 19:21:04 +0200 Subject: [PATCH 1/2] cdiv() param type fix --- src/util.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.hpp b/src/util.hpp index f114e1fcb..a4ed44852 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -32,7 +32,7 @@ #include template -constexpr inline Int cdiv(Int a, int b) { return (a + b - 1) / b; } +constexpr inline Int cdiv(Int a, Int b) { return (a + b - 1) / b; } #ifdef _WIN32 #define NOMINMAX From fee7d07b34dc1b8b39c3672c433e2980fba3aa34 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 14 Oct 2021 19:25:39 +0200 Subject: [PATCH 2/2] cdiv() second template param --- src/util.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.hpp b/src/util.hpp index a4ed44852..0d6c379ac 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -31,8 +31,8 @@ #include #include -template -constexpr inline Int cdiv(Int a, Int b) { return (a + b - 1) / b; } +template +constexpr inline Int cdiv(Int a, Int2 b) { return (a + b - 1) / b; } #ifdef _WIN32 #define NOMINMAX