Fixed another minor visual studio compiler error.

This commit is contained in:
Davis King 2013-04-20 14:35:58 -04:00
parent 5c9307ea20
commit f320932ef0

View File

@ -44,7 +44,7 @@ namespace dlib
if (data.size() == 0)
return;
const unsigned long num = static_cast<unsigned long>(std::log(data.size())/std::log(2.0) + 0.5);
const unsigned long num = static_cast<unsigned long>(std::log((double)data.size())/std::log(2.0) + 0.5);
for (unsigned long i = 0; i < (unsigned long)data.size(); ++i)
{
outdata(impl::reverse_bits(i,num)) = data(i);