mirror of https://github.com/davisking/dlib.git
Changed to avoid compiler error in visual studio 2005
This commit is contained in:
parent
e4cd58aae5
commit
419eebc81b
|
@ -75,7 +75,7 @@ namespace dlib
|
|||
// figure out what the offset values should be
|
||||
for (int itr = 0; itr < offset.size(); ++itr)
|
||||
{
|
||||
counts.assign(std::pow(2,bits), 0);
|
||||
counts.assign(std::pow(2.0,bits), 0);
|
||||
// count the popularity of each hash value
|
||||
for (unsigned long i = 0; i < h.size(); ++i)
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace dlib
|
|||
unsigned long num_hash_bins (
|
||||
) const
|
||||
{
|
||||
return static_cast<unsigned long>(std::pow(2, offset.size()));
|
||||
return static_cast<unsigned long>(std::pow(2.0, offset.size()));
|
||||
}
|
||||
|
||||
template <typename EXP>
|
||||
|
|
Loading…
Reference in New Issue