Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
dean0x7d committed Oct 15, 2023
1 parent 2dafcd9 commit e6ee3d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cppcore/include/detail/algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Sliced {
Iterator(InnerIt last) : it(last) {}

InnerIt begin() const { return it; }
InnerIt end() const { return std::min(it + step, last); }
InnerIt end() const { return it + std::min(step, last - it); }

reference operator*() { return *this; }
pointer operator->() { return this; }
Expand Down
2 changes: 2 additions & 0 deletions cppmodule/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ endif()

add_custom_target(pytest COMMAND ${PYTHON_EXECUTABLE} -m pytest DEPENDS _pybinding
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})

target_compile_definitions(_pybinding PRIVATE PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF)

0 comments on commit e6ee3d1

Please sign in to comment.