From 9a5e93213e08601a58725f44035ac622fb68e849 Mon Sep 17 00:00:00 2001 From: scuri Date: Tue, 29 Sep 2009 21:26:38 +0000 Subject: *** empty log message *** --- src/im_converttype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/im_converttype.cpp') 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 inline T iAbs(const T& v) { - if (v <= 0) + if (v < 0) return -1*v; return v; } -- cgit v1.2.3