[gnumeric] long double: fix type confusion.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] long double: fix type confusion.
- Date: Thu, 3 Feb 2022 23:16:19 +0000 (UTC)
commit b0f72037056afbbfb24737fa452f54c226dc5db8
Author: Morten Welinder <terra gnome org>
Date: Thu Feb 3 18:15:11 2022 -0500
long double: fix type confusion.
plugins/fn-financial/functions.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/fn-financial/functions.c b/plugins/fn-financial/functions.c
index 3c50554ff..69cb42d8f 100644
--- a/plugins/fn-financial/functions.c
+++ b/plugins/fn-financial/functions.c
@@ -241,7 +241,7 @@ days_monthly_basis (GnmValue const *issue_date,
/* Returns the number of coupons to be paid between the settlement
* and maturity dates.
*/
-static gnm_float
+static double
coupnum (GDate const *settlement, GDate const *maturity,
GoCouponConvention const *conv)
{
@@ -271,7 +271,7 @@ coupnum (GDate const *settlement, GDate const *maturity,
return (1 + months / (12 / conv->freq));
}
-static gnm_float
+static double
couppcd (GDate const *settlement, GDate const *maturity,
GoCouponConvention const *conv)
{
@@ -280,7 +280,7 @@ couppcd (GDate const *settlement, GDate const *maturity,
return go_date_g_to_serial (&date, conv->date_conv);
}
-static gnm_float
+static double
coupncd (GDate const *settlement, GDate const *maturity,
GoCouponConvention const *conv)
{
@@ -327,8 +327,8 @@ price (GDate *settlement, GDate *maturity, gnm_float rate, gnm_float yield,
static GnmValue *
func_coup (GnmFuncEvalInfo *ei, GnmValue const * const *argv,
- gnm_float (coup_fn) (GDate const *settle, GDate const *mat,
- GoCouponConvention const *conv))
+ double (coup_fn) (GDate const *settle, GDate const *mat,
+ GoCouponConvention const *conv))
{
GDate settlement, maturity;
GoCouponConvention conv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]