summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/rtl/math.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index c694e587bb1b..b8a1cd2b2962 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -1071,6 +1071,10 @@ double SAL_CALL rtl_math_expm1( double fValue ) SAL_THROW_EXTERN_C()
double SAL_CALL rtl_math_log1p( double fValue ) SAL_THROW_EXTERN_C()
{
+#ifdef __APPLE__
+ if (fValue == -0.0)
+ return fValue; // OS X 10.8 libc returns 0.0 for -0.0
+#endif
return log1p(fValue);
}