summaryrefslogtreecommitdiff
path: root/src/im_converttype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/im_converttype.cpp')
-rw-r--r--src/im_converttype.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/im_converttype.cpp b/src/im_converttype.cpp
index 0c3d801..ee69b6f 100644
--- a/src/im_converttype.cpp
+++ b/src/im_converttype.cpp
@@ -2,7 +2,7 @@
* \brief Image Data Type Conversion
*
* See Copyright Notice in im_lib.h
- * $Id: im_converttype.cpp,v 1.2 2008/11/18 20:38:21 scuri Exp $
+ * $Id: im_converttype.cpp,v 1.3 2009/09/29 21:30:57 scuri Exp $
*/
#include "im.h"
@@ -72,7 +72,7 @@ inline int iIntMax()
template <class T>
inline T iAbs(const T& v)
{
- if (v <= 0)
+ if (v < 0)
return -1*v;
return v;
}