Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Apr 25, 2024
1 parent f8f25ca commit ce6d405
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,3 @@ jobs:
run: |
cd libs/histogram
../../b2 $B2_OPTS toolset=clang-14 cxxstd=17 variant=histogram_ubasan test//all
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Fetch Boost superproject
run: |
cd ..
git clone -b $GITHUB_BASE_REF --depth 5 https://github.com/boostorg/boost.git
cd boost
git submodule update --init --depth 5 tools/build tools/boostdep
xcopy /s /e /q $GITHUB_WORKSPACE libs\histogram\
python tools\boostdep\depinst\depinst.py -N units -N range -N accumulators --git_args "--depth 5 --jobs 2" histogram
- name: Prepare b2
run: cmd /c bootstrap & cd libs\histogram
# cxxstd=latest (aka 20) breaks VS 2022 in algorithm_project_test so we use cxxstd=17
# msvc-14.3 breaks test//serialization, more precisely axis_variant_serialization_test
- name: Test cxxstd=17 minimal
run: ..\..\b2 $B2_OPTS cxxstd=17 test//minimal

2 changes: 1 addition & 1 deletion include/boost/histogram/axis/integer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class integer : public iterator_mixin<integer<Value, MetaData, Options>>,
/// Returns index and shift (if axis has grown) for the passed argument.
auto update(value_type x) noexcept {
auto impl = [this](long x) -> std::pair<index_type, index_type> {
const auto i = x - min_;
const auto i = static_cast<value_type>(x) - min_;
if (i >= 0) {
const auto k = static_cast<axis::index_type>(i);
if (k < size()) return {k, 0};
Expand Down

0 comments on commit ce6d405

Please sign in to comment.