Skip to content

Commit

Permalink
msvc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rroelke authored and github-actions committed Feb 10, 2025
1 parent 04b59a3 commit eaa0650
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions test/src/unit-sparse-global-order-reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1552,11 +1552,13 @@ TEST_CASE_METHOD(
templates::Fragment1D<int, int> fragment;
fragment.dim_.resize(fragment_size);
std::iota(
fragment.dim_.begin(), fragment.dim_.end(), f * (fragment_size - 1));
fragment.dim_.begin(),
fragment.dim_.end(),
static_cast<int>(f * (fragment_size - 1)));

auto& atts = std::get<0>(fragment.atts_);
atts.resize(fragment_size);
std::iota(atts.begin(), atts.end(), f * fragment_size);
std::iota(atts.begin(), atts.end(), static_cast<int>(f * fragment_size));

instance.fragments.push_back(fragment);
}
Expand Down Expand Up @@ -2989,16 +2991,16 @@ void CSparseGlobalOrderFx::run_execute(Instance& instance) {
}
tiledb_query_free(&query);
return;
} else if (
std::is_same_v<Asserter, AsserterRapidcheck> &&
err.find("Cannot load tile offsets") != std::string::npos) {
// not enough memory budget for tile offsets, don't bother asserting
// about it (for now?)
tiledb_query_free(&query);
return;
} else {
ASSERTER("" == err);
}
if constexpr (std::is_same_v<Asserter, AsserterRapidcheck>) {
if (err.find("Cannot load tile offsets") != std::string::npos) {
// not enough memory budget for tile offsets, don't bother asserting
// about it (for now?)
tiledb_query_free(&query);
return;
}
}
ASSERTER("" == err);
}

tiledb_query_status_t status;
Expand Down

0 comments on commit eaa0650

Please sign in to comment.