summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu-xetex/test/intltest/tsdate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu-xetex/test/intltest/tsdate.cpp')
-rw-r--r--Build/source/libs/icu-xetex/test/intltest/tsdate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/libs/icu-xetex/test/intltest/tsdate.cpp b/Build/source/libs/icu-xetex/test/intltest/tsdate.cpp
index fed509f5127..00f740ec0a1 100644
--- a/Build/source/libs/icu-xetex/test/intltest/tsdate.cpp
+++ b/Build/source/libs/icu-xetex/test/intltest/tsdate.cpp
@@ -1,6 +1,5 @@
/***********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2004, International Business Machines Corporation
+ * Copyright (c) 1997-2006, International Business Machines Corporation
* and others. All Rights Reserved.
***********************************************************************/
@@ -15,6 +14,7 @@
#include <float.h>
#include <stdlib.h>
+#include <math.h>
const double IntlTestDateFormat::ONEYEAR = 365.25 * ONEDAY; // Approximate
@@ -214,7 +214,7 @@ void IntlTestDateFormat::tryDate(UDate theDate)
}
}
}
-
+
// Return a random double from 0.01 to 1, inclusive
double IntlTestDateFormat::randDouble()
{
@@ -235,7 +235,7 @@ double IntlTestDateFormat::randDouble()
d = -d;
if (d > 0.0)
{
- double e = uprv_floor(uprv_log10(d));
+ double e = uprv_floor(log10(d));
if (e < -2.0)
d *= uprv_pow10((int32_t)(-e-2));
else if (e > -1.0)