Skip to content

Instantly share code, notes, and snippets.

@hgaiser
Last active September 30, 2015 09:07
Show Gist options
  • Save hgaiser/47a70ba21463ca982f7a to your computer and use it in GitHub Desktop.
Save hgaiser/47a70ba21463ca982f7a to your computer and use it in GitHub Desktop.
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