Skip to content

Commit

Permalink
fix some compiler warning (#2034)
Browse files Browse the repository at this point in the history
* fix compiler warnings

* fix some more warnings
  • Loading branch information
boeschf authored Nov 10, 2022
1 parent 3ff2b5e commit aa19326
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/unit/test_lif_cell_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ TEST(lif_cell_group, probe) {
auto fun = [&ums](probe_metadata pm,
std::size_t n,
const sample_record* samples) {
for (int ix = 0; ix < n; ++ix) {
for (std::size_t ix = 0; ix < n; ++ix) {
const auto& [t, v] = samples[ix];
double u = *util::any_cast<double*>(v);
ums[pm.id].push_back({t, u});
Expand Down Expand Up @@ -684,7 +684,7 @@ std::vector<Um_type> exp = {{ 0, -18 },
ASSERT_FALSE(testing::seq_eq(ums[{1, 0}], exp));
// now check the spikes
std::sort(spikes.begin(), spikes.end());
EXPECT_EQ(spikes.size(), 3);
EXPECT_EQ(spikes.size(), 3u);
std::vector<double> sexp{2, 4, 5};
ASSERT_TRUE(testing::seq_almost_eq<double>(spikes, sexp));
}
13 changes: 7 additions & 6 deletions test/unit/test_segment_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,13 @@ TEST(segment_tree, tag_roots) {
EXPECT_EQ((std::vector<arb::msize_t>{3}), arb::tag_roots(tree, 3));
}
}
// gnarly tree
// (npos) - 0 - 1 - 4
// \
// 2 - 3
// \
// 5
/* gnarly tree
** (npos) - 0 - 1 - 4
** \
** 2 - 3
** \
** 5
*/
{
arb::segment_tree tree;
tree.append(arb::mnpos, {0, 0, 0}, {0, 0, 1}, 1); // 0
Expand Down

0 comments on commit aa19326

Please sign in to comment.