[gnumeric] gnm_float: fix a few "double".
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] gnm_float: fix a few "double".
- Date: Wed, 23 Dec 2009 20:07:20 +0000 (UTC)
commit a7889a9f356c75ba3c4ce31370269aff4dc46c9a
Author: Morten Welinder <terra gnome org>
Date: Wed Dec 23 15:06:53 2009 -0500
gnm_float: fix a few "double".
ChangeLog | 4 ++++
plugins/fn-math/ChangeLog | 4 ++++
plugins/fn-math/functions.c | 2 +-
src/gnm-datetime.c | 2 +-
4 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 955b20d..b36a6f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-23 Morten Welinder <terra gnome org>
+
+ * src/gnm-datetime.c (datetime_value_to_serial): Fix type problem.
+
2009-12-22 Andreas J. Guelzow <aguelzow pyrshep ca>
* component/Gnumeric-embed.xml.in: add principal components analysis
diff --git a/plugins/fn-math/ChangeLog b/plugins/fn-math/ChangeLog
index 8521e76..7172cbe 100644
--- a/plugins/fn-math/ChangeLog
+++ b/plugins/fn-math/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-23 Morten Welinder <terra gnome org>
+
+ * functions.c (gnm_gcd_max): Fix type.
+
2009-121 Andreas J. Guelzow <aguelzow pyrshep ca>
* plugin.xml.in: add EIGEN
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index 936dbed..e2cdb34 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -65,7 +65,7 @@ static GnmFuncHelp const help_gcd[] = {
{ GNM_FUNC_HELP_END}
};
-static const double gnm_gcd_max = 1 / GNM_EPSILON;
+static const gnm_float gnm_gcd_max = 1 / GNM_EPSILON;
static gnm_float
gnm_gcd (gnm_float a, gnm_float b)
diff --git a/src/gnm-datetime.c b/src/gnm-datetime.c
index b73434d..5d74467 100644
--- a/src/gnm-datetime.c
+++ b/src/gnm-datetime.c
@@ -86,7 +86,7 @@ datetime_value_to_serial_raw (GnmValue const *v, GODateConventions const *conv)
int
datetime_value_to_serial (GnmValue const *v, GODateConventions const *conv)
{
- double serial = datetime_value_to_serial_raw (v, conv);
+ gnm_float serial = datetime_value_to_serial_raw (v, conv);
if (serial >= G_MAXINT || serial < G_MININT)
return G_MAXINT;
return go_date_serial_raw_to_serial (serial);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]