Perhaps this will avoid the ambiguity in Windows.

This commit is contained in:
Andrzej Kapolka 2014-06-04 17:41:36 -07:00
parent 9ec2a5aec1
commit 37382304f7

View file

@ -720,7 +720,7 @@ Bitstream& Bitstream::operator<(const TypeStreamer* streamer) {
}
static int getBitsForHighestValue(int highestValue) {
return (highestValue == 0) ? 0 : 1 + (int)(glm::log(highestValue) / glm::log(2.0));
return (highestValue == 0) ? 0 : 1 + (int)(log((double)highestValue) / log(2.0));
}
Bitstream& Bitstream::operator>(TypeReader& reader) {