"tests/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "2cf4bd0acf479d8d51347b6b524aebd3fdcc8d9f"
Commit f320932e authored by Davis King's avatar Davis King
Browse files

Fixed another minor visual studio compiler error.

parent 5c9307ea
...@@ -44,7 +44,7 @@ namespace dlib ...@@ -44,7 +44,7 @@ namespace dlib
if (data.size() == 0) if (data.size() == 0)
return; 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) for (unsigned long i = 0; i < (unsigned long)data.size(); ++i)
{ {
outdata(impl::reverse_bits(i,num)) = data(i); outdata(impl::reverse_bits(i,num)) = data(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment