From kde-commits Tue Aug 24 20:28:35 2004 From: Alejandro Exojo Date: Tue, 24 Aug 2004 20:28:35 +0000 To: kde-commits Subject: kdeutils/kcalc Message-Id: <20040824202835.23BE51D91 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109337933109712 CVS commit by suy: Klaus Niederkrueger Fixed BUG 74657. CCMAIL:74657-done@bugs.kde.org M +8 -3 kcalc_core.cpp 1.89 --- kdeutils/kcalc/kcalc_core.cpp #1.88:1.89 @@ -291,6 +291,11 @@ int isoddint(CALCAMNT input) static CALCAMNT ExecPower(CALCAMNT left_op, CALCAMNT right_op) { - // printf("ExecPowser %g left_op, %g right_op\n",left_op, right_op); if (right_op == 0) + if (left_op == 0) // 0^0 not defined + { + _error = true; + return 0L; + } + else return 1L; @@ -303,5 +308,5 @@ static CALCAMNT ExecPower(CALCAMNT left_ { _error = true; - return 0; + return 0L; } else