Commit 812edb5f authored by Erik Karlsson's avatar Erik Karlsson

Fixed bug, maxDist() should reurn int, not double

parent 8aa07839
......@@ -176,7 +176,7 @@ public:
}
template <typename T>
static inline double maxDist()
static inline int maxDist()
{
return (int)pixelInfo<T>::sampleMax() * pixelInfo<T>::channels;
}
......@@ -298,7 +298,7 @@ public:
}
template <typename T>
static inline double maxDist()
static inline int maxDist()
{
return (int)pixelInfo<T>::sampleMax() * (int)pixelInfo<T>::sampleMax() *
pixelInfo<T>::channels;
......
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