Commit b8aa8b2f authored by Davis King's avatar Davis King

Changed slightly to avoid compiler error from visual studio 7.1

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403708
parent 3a302e3f
...@@ -95,7 +95,7 @@ namespace dlib ...@@ -95,7 +95,7 @@ namespace dlib
is_same_type<type,long double>::value == true is_same_type<type,long double>::value == true
)); ));
return std::pow(val,s); return std::pow(val,static_cast<type>(s));
} }
template <typename type, typename S> template <typename type, typename S>
...@@ -108,7 +108,7 @@ namespace dlib ...@@ -108,7 +108,7 @@ namespace dlib
is_same_type<type,long double>::value == true is_same_type<type,long double>::value == true
)); ));
return std::pow(s,val); return std::pow(static_cast<type>(s),val);
} }
template <typename type> template <typename type>
......
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