OSDN Git Service

Fix thinko.
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Aug 2000 11:29:16 +0000 (11:29 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Aug 2000 11:29:16 +0000 (11:29 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35838 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/bits/std_cmath.h

index dd21e4f..d7df14b 100644 (file)
@@ -48,10 +48,10 @@ namespace std {
   //
 
   inline int abs(int i)
-  { return i < 0 ? i : -i; }
+  { return i > 0 ? i : -i; }
 
   inline long abs(long i)
-  { return i < 0 ? i : -i; }
+  { return i > 0 ? i : -i; }
   
     //
     // float