diff options
author | Caleb Tennis <caleb@gentoo.org> | 2004-06-11 12:30:05 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2004-06-11 12:30:05 +0000 |
commit | 55303d08d5004ef06cecf6678b9f8c394c59f294 (patch) | |
tree | e17a5e8ae3340a63164a2c1c7ddacb25d9974e8a /kde-base | |
parent | Stable on alpha. (Manifest recommit) (diff) | |
download | gentoo-2-55303d08d5004ef06cecf6678b9f8c394c59f294.tar.gz gentoo-2-55303d08d5004ef06cecf6678b9f8c394c59f294.tar.bz2 gentoo-2-55303d08d5004ef06cecf6678b9f8c394c59f294.zip |
Fix missing patch
Diffstat (limited to 'kde-base')
-rw-r--r-- | kde-base/arts/files/arts-1.2.3-buffer.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kde-base/arts/files/arts-1.2.3-buffer.patch b/kde-base/arts/files/arts-1.2.3-buffer.patch new file mode 100644 index 000000000000..b8bb4a94ec9f --- /dev/null +++ b/kde-base/arts/files/arts-1.2.3-buffer.patch @@ -0,0 +1,27 @@ +--- mcop/buffer.cc.orig 2004-03-24 14:51:23.586055192 +0100 ++++ mcop/buffer.cc 2004-03-24 14:56:14.054897216 +0100 +@@ -87,9 +87,8 @@ + void Buffer::writeFloat(float f) { + // FIXME: on some machines this may fail badly (there is explicit + // float marshalling and demarshalling code in mico/orb/util.cc) +- +- long *f_as_long = (long *)&f; +- writeLong(*f_as_long); ++ union { float f; long l; } u = {f}; ++ writeLong(u.l); + } + + void Buffer::writeFloatSeq(const std::vector<float>& seq) { +@@ -252,9 +251,10 @@ + float Buffer::readFloat() + { + // FIXME: see writeFloat() +- long f_as_long = readLong(); ++ union {float f; long l; } u; ++ u.l = readLong(); + +- if(!_readError) return *(float *)&f_as_long; ++ if(!_readError) return u.f; + return 0.0; + } + |