From 37382304f7d1501658a14e75b418e06fd339880c Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 4 Jun 2014 17:41:36 -0700 Subject: [PATCH] Perhaps this will avoid the ambiguity in Windows. --- libraries/metavoxels/src/Bitstream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/metavoxels/src/Bitstream.cpp b/libraries/metavoxels/src/Bitstream.cpp index cf9fa25d96..dc74594816 100644 --- a/libraries/metavoxels/src/Bitstream.cpp +++ b/libraries/metavoxels/src/Bitstream.cpp @@ -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) {