Skip to content

Commit

Permalink
Fix build on Android with gnustl (google#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
KindDragon authored and ondys committed May 26, 2017
1 parent 25adf5d commit 5bfbfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shannon_entropy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int64_t ComputeShannonEntropy(const uint32_t *symbols, int num_symbols,
// Compute Shannon entropy for the symbol.
total_bits +=
symbol_frequencies[i] *
std::log2(static_cast<double>(symbol_frequencies[i]) / num_symbols_d);
log2(static_cast<double>(symbol_frequencies[i]) / num_symbols_d);
}
}
if (out_num_unique_symbols)
Expand Down

0 comments on commit 5bfbfe1

Please sign in to comment.