Skip to content

Commit

Permalink
cdiv() param type fix (#311)
Browse files Browse the repository at this point in the history
* cdiv() param type fix

* cdiv() second template param
  • Loading branch information
madMAx43v3r committed Oct 28, 2021
1 parent 501aa1f commit edcf6aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.hpp
Expand Up @@ -31,8 +31,8 @@
#include <utility>
#include <vector>

template <typename Int>
constexpr inline Int cdiv(Int a, int b) { return (a + b - 1) / b; }
template <typename Int, typename Int2>
constexpr inline Int cdiv(Int a, Int2 b) { return (a + b - 1) / b; }

#ifdef _WIN32
#define NOMINMAX
Expand Down

0 comments on commit edcf6aa

Please sign in to comment.