diff --git a/.travis.yml b/.travis.yml index 8ed8f09..e562c21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,17 +10,33 @@ jobs: - name: Xcode 13.2 os: osx osx_image: xcode13.2 + before_install: + - HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_UPGRADE=1 brew install git-lfs + before_script: + - git lfs install && git lfs pull - name: Xcode 10.3 os: osx osx_image: xcode10.3 + before_install: + - HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_UPGRADE=1 brew install git-lfs + before_script: + - git lfs install && git lfs pull - name: Xcode 10.3 (targeting macOS 10.12) os: osx osx_image: xcode10.3 + before_install: + - HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_UPGRADE=1 brew install git-lfs + before_script: + - git lfs install && git lfs pull env: - MACOSX_DEPLOYMENT_TARGET="10.12" - name: Xcode 13.2 (targeting macOS 10.12) os: osx osx_image: xcode13.2 + before_install: + - HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_UPGRADE=1 brew install git-lfs + before_script: + - git lfs install && git lfs pull env: - MACOSX_DEPLOYMENT_TARGET="10.12" diff --git a/include/yatlib/bitmap.hpp b/include/yatlib/bitmap.hpp index b855e65..6e6d504 100644 --- a/include/yatlib/bitmap.hpp +++ b/include/yatlib/bitmap.hpp @@ -161,12 +161,12 @@ class bitmap_view { public: /// Create a bitmap view a set of bits - constexpr bitmap_view(const void* data, uint64_t num_bits) noexcept + bitmap_view(const void* data, uint64_t num_bits) noexcept : _num_bits{num_bits}, _bits{static_cast(data), cas(num_bits)} {} /// Create a bitmap view from a bitmap - constexpr bitmap_view(const bitmap& bm) noexcept + bitmap_view(const bitmap& bm) noexcept : bitmap_view{bm._storage.data(), bm._count} {} /// Access a given bit. No bounds checking is performed and accessing an