Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/src/third_party/s2/s2regioncoverer.cc b/src/third_party/s2/s2regioncoverer.cc
index fb1cb2a..e6eb797 100644
--- a/src/third_party/s2/s2regioncoverer.cc
+++ b/src/third_party/s2/s2regioncoverer.cc
@@ -113,7 +113,7 @@ S2RegionCoverer::Candidate* S2RegionCoverer::NewCandidate(S2Cell const& cell) {
size += sizeof(Candidate*) << max_children_shift();
}
Candidate* candidate = static_cast<Candidate*>(malloc(size));
- memset(candidate, 0, size);
+ memset((void *)candidate, 0, size);
candidate->cell = cell;
candidate->is_terminal = is_terminal;
++candidates_created_counter_;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment