summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Mehnert <hannes@gentoo.org>2003-03-14 19:14:09 +0000
committerHannes Mehnert <hannes@gentoo.org>2003-03-14 19:14:09 +0000
commitf0d59f9c32892db46411d25885d7fad8b2d9d560 (patch)
tree2fd61915d661e918ef85bee37d813e07c432c862 /kde-base/kdelibs/files/kdelibs-3.1.1-kjs-alphaev6-gcc3-workaround.patch
parentAdded "lirc" to IUSE. (diff)
downloadgentoo-2-f0d59f9c32892db46411d25885d7fad8b2d9d560.tar.gz
gentoo-2-f0d59f9c32892db46411d25885d7fad8b2d9d560.tar.bz2
gentoo-2-f0d59f9c32892db46411d25885d7fad8b2d9d560.zip
kde-3.1.1
Diffstat (limited to 'kde-base/kdelibs/files/kdelibs-3.1.1-kjs-alphaev6-gcc3-workaround.patch')
-rw-r--r--kde-base/kdelibs/files/kdelibs-3.1.1-kjs-alphaev6-gcc3-workaround.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/kde-base/kdelibs/files/kdelibs-3.1.1-kjs-alphaev6-gcc3-workaround.patch b/kde-base/kdelibs/files/kdelibs-3.1.1-kjs-alphaev6-gcc3-workaround.patch
new file mode 100644
index 000000000000..930776d23a51
--- /dev/null
+++ b/kde-base/kdelibs/files/kdelibs-3.1.1-kjs-alphaev6-gcc3-workaround.patch
@@ -0,0 +1,19 @@
+--- kjs/ustring.cpp.orig 2003-01-23 15:49:49.000000000 -0500
++++ kjs/ustring.cpp 2003-01-27 19:49:00.000000000 -0500
+@@ -421,8 +421,15 @@
+ {
+ double d = toDouble();
+ bool b = true;
++ /* useless temporary variable to work around gcc optimization bug */
++ bool nan = false;
+
+- if (isNaN(d) || d != static_cast<unsigned long>(d)) {
++ if (isNaN(d)) {
++ d = 0;
++ nan = true;
++ }
++
++ if (nan || d != static_cast<unsigned long>(d)) {
+ b = false;
+ d = 0;
+ }