提交 812edb5f 编写于 作者: E Erik Karlsson

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册