Last active
September 30, 2015 09:07
-
-
Save hgaiser/47a70ba21463ca982f7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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