summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/bits/std_cmath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/bits/std_cmath.h b/libstdc++-v3/bits/std_cmath.h
index dd21e4fa19f..d7df14b2198 100644
--- a/libstdc++-v3/bits/std_cmath.h
+++ b/libstdc++-v3/bits/std_cmath.h
@@ -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