summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-07-13 09:18:09 +0000
committerDan Armak <danarmak@gentoo.org>2002-07-13 09:18:09 +0000
commit77e36bfc6600a4810e7b7a9604326e54879d1d6c (patch)
treee76ef0ee4ae9c4fc4a06d13ba507c4c13854c6ea /kde-base/kdeutils
parentadd patch from 3.0.x, it's still necessary (diff)
downloadgentoo-2-77e36bfc6600a4810e7b7a9604326e54879d1d6c.tar.gz
gentoo-2-77e36bfc6600a4810e7b7a9604326e54879d1d6c.tar.bz2
gentoo-2-77e36bfc6600a4810e7b7a9604326e54879d1d6c.zip
add compile patch for kcalc from kde-devel
Diffstat (limited to 'kde-base/kdeutils')
-rw-r--r--kde-base/kdeutils/files/kcalc-pow-casts.diff33
-rw-r--r--kde-base/kdeutils/kdeutils-3.1_alpha1.ebuild4
2 files changed, 35 insertions, 2 deletions
diff --git a/kde-base/kdeutils/files/kcalc-pow-casts.diff b/kde-base/kdeutils/files/kcalc-pow-casts.diff
new file mode 100644
index 000000000000..2beafb91b087
--- /dev/null
+++ b/kde-base/kdeutils/files/kcalc-pow-casts.diff
@@ -0,0 +1,33 @@
+Index: kcalc_core.cpp
+===================================================================
+RCS file: /home/kdecvs/kde/kdeutils/kcalc/kcalc_core.cpp,v
+retrieving revision 1.51
+diff -u -3 -p -r1.51 kcalc_core.cpp
+--- kcalc/kcalc_core.cpp 22 May 2002 01:05:19 -0000 1.51
++++ kcalc/kcalc_core.cpp 9 Jul 2002 14:43:39 -0000
+@@ -371,12 +371,12 @@ void QtCalculator::EnterDigit(int data)
+ if (DISPLAY_AMOUNT < 0) {
+ DISPLAY_AMOUNT = decimal_point ?
+ DISPLAY_AMOUNT - ((CALCAMNT)data /
+- POW(current_base, decimal_point++)) :
++ POW((CALCAMNT) current_base, decimal_point++)) :
+ (current_base * DISPLAY_AMOUNT) - data;
+ } else {
+ DISPLAY_AMOUNT = decimal_point ?
+ DISPLAY_AMOUNT + ((CALCAMNT)data /
+- POW(current_base, decimal_point++)) :
++ POW((CALCAMNT) current_base, decimal_point++)) :
+ (current_base * DISPLAY_AMOUNT) + data;
+ }
+ }
+@@ -402,8 +402,8 @@ void QtCalculator::SubtractDigit()
+ DISPLAY_AMOUNT = floor(DISPLAY_AMOUNT);
+ } else {
+ --decimal_point;
+- DISPLAY_AMOUNT = floor(DISPLAY_AMOUNT * POW(current_base, decimal_point - 1)) /
+- POW(current_base, (decimal_point - 1));
++ DISPLAY_AMOUNT = floor(DISPLAY_AMOUNT * POW((CALCAMNT) current_base, decimal_point - 1)) /
++ POW((CALCAMNT) current_base, (decimal_point - 1));
+ }
+ } else {
+ DISPLAY_AMOUNT = floor(DISPLAY_AMOUNT / current_base);
diff --git a/kde-base/kdeutils/kdeutils-3.1_alpha1.ebuild b/kde-base/kdeutils/kdeutils-3.1_alpha1.ebuild
index 3b525f55c16a..b92ad208fcba 100644
--- a/kde-base/kdeutils/kdeutils-3.1_alpha1.ebuild
+++ b/kde-base/kdeutils/kdeutils-3.1_alpha1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeutils/kdeutils-3.1_alpha1.ebuild,v 1.1 2002/07/12 22:07:35 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeutils/kdeutils-3.1_alpha1.ebuild,v 1.2 2002/07/13 09:18:09 danarmak Exp $
inherit kde-dist
DESCRIPTION="${DESCRIPTION}Utilities"
-echo SLOT=$SLOT \ No newline at end of file
+PATCHES="$FILESDIR/kcalc-pow-casts.diff"