[gnumeric] POWER: Fix regression in error case.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] POWER: Fix regression in error case.
- Date: Wed, 14 Nov 2012 15:00:57 +0000 (UTC)
commit 8b154d37613ee6828699944ec9586a0a60f1a7d4
Author: Morten Welinder <terra gnome org>
Date: Wed Nov 14 10:00:41 2012 -0500
POWER: Fix regression in error case.
plugins/fn-math/functions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index ae549bf..5ec7813 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -1246,7 +1246,7 @@ gnumeric_power (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
return value_new_float (r);
}
- if (x != 0 && y != 0)
+ if (x == 0 && y != 0)
return value_new_error_DIV0 (ei->pos);
else
return value_new_error_NUM (ei->pos);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]