gcalctool r2120 - in trunk: . gcalctool
- From: rancell svn gnome org
- To: svn-commits-list gnome org
- Subject: gcalctool r2120 - in trunk: . gcalctool
- Date: Sun, 29 Jun 2008 08:37:26 +0000 (UTC)
Author: rancell
Date: Sun Jun 29 08:37:26 2008
New Revision: 2120
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2120&view=rev
Log:
Fix bug in factorial calculation that was added when functions were renamed (Klaus Niederkrueger)
Modified:
trunk/ChangeLog
trunk/gcalctool/functions.c
Modified: trunk/gcalctool/functions.c
==============================================================================
--- trunk/gcalctool/functions.c (original)
+++ trunk/gcalctool/functions.c Sun Jun 29 08:37:26 2008
@@ -761,7 +761,7 @@
mpcmim(MPval, MP1);
mp_set_from_integer(0, MP2);
if (mp_is_equal(MPval, MP1)
- && mp_is_equal(MPval, MP2)) { /* Only positive integers. */
+ && mp_is_greater_equal(MPval, MP2)) { /* Only positive integers. */
if (mp_is_equal(MP1, MP2)) { /* Special case for 0! */
mp_set_from_integer(1, MPres);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]