Skip to content

Commit

Permalink
Merge pull request #651 from jrade/main
Browse files Browse the repository at this point in the history
Correct size_t format specifier
  • Loading branch information
erikbern committed Jun 8, 2023
2 parents 7595fb3 + 834c5b4 commit 5c8d68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/annoylib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ template<typename S, typename T, typename Distance, typename Random, class Threa
_loaded = true;
_built = true;
_n_items = m;
if (_verbose) annoylib_showUpdate("found %lu roots with degree %d\n", _roots.size(), m);
if (_verbose) annoylib_showUpdate("found %zu roots with degree %d\n", _roots.size(), m);
return true;
}

Expand Down Expand Up @@ -1325,7 +1325,7 @@ template<typename S, typename T, typename Distance, typename Random, class Threa
// If we didn't find a hyperplane, just randomize sides as a last option
while (_split_imbalance(children_indices[0], children_indices[1]) > 0.99) {
if (_verbose)
annoylib_showUpdate("\tNo hyperplane found (left has %ld children, right has %ld children)\n",
annoylib_showUpdate("\tNo hyperplane found (left has %zu children, right has %zu children)\n",
children_indices[0].size(), children_indices[1].size());

children_indices[0].clear();
Expand Down

0 comments on commit 5c8d68a

Please sign in to comment.