mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed another minor visual studio compiler error.
This commit is contained in:
parent
5c9307ea20
commit
f320932ef0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user