[gnumeric] MUNIT: return right error for size 0<n<1.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] MUNIT: return right error for size 0<n<1.
- Date: Mon, 26 Feb 2018 15:59:42 +0000 (UTC)
commit b0fd77ca2b87719881e348cd0ab0ba51d1e74a18
Author: Morten Welinder <terra gnome org>
Date: Mon Feb 26 10:59:04 2018 -0500
MUNIT: return right error for size 0<n<1.
NEWS | 1 +
plugins/fn-math/ChangeLog | 5 +++++
plugins/fn-math/functions.c | 2 +-
3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index ff76d1a..09c6ab1 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Morten:
* Some internal array formula code cleanups.
* Fix problem with stopping a glpk solver.
* Improve workaround for gtk+ scrollbar bug. [#792417]
+ * Fix minor issue for MUNIT.
Rafael Fontenelle:
* Doc fixes. [#792556] [#792592]
diff --git a/plugins/fn-math/ChangeLog b/plugins/fn-math/ChangeLog
index 73a68a6..9d6371e 100644
--- a/plugins/fn-math/ChangeLog
+++ b/plugins/fn-math/ChangeLog
@@ -1,3 +1,8 @@
+2018-02-26 Morten Welinder <terra gnome org>
+
+ * functions.c (gnumeric_munit): Return the right error if we get a
+ size between 0 and 1.
+
2017-12-28 Morten Welinder <terra gnome org>
* Release 1.12.38
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index 0e295c1..5c2cde3 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -2996,7 +2996,7 @@ gnumeric_munit (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
gint c, ni;
GnmValue *res;
- if (n <= 0)
+ if (n < 1)
return value_new_error_NUM (ei->pos);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]