[gnumeric] CEIL: simplify code.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] CEIL: simplify code.
- Date: Wed, 31 Aug 2022 17:11:52 +0000 (UTC)
commit c1ed49448d5041caeed178d89d07bf141925d8b4
Author: Morten Welinder <terra gnome org>
Date: Wed Aug 31 13:11:39 2022 -0400
CEIL: simplify code.
plugins/fn-math/functions.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index e06e29586..9d4aaeba3 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -618,9 +618,7 @@ static GnmValue *
gnumeric_ceil (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
{
gnm_float x = value_get_as_float (argv[0]);
- gnm_float y = gnm_fake_ceil (x);
-
- return value_new_float (y == 0 ? 0 : y);
+ return value_new_float (gnm_fake_ceil (x));
}
/***************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]