Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27920 Details for
Bug 41472
Sound in JuK, Noatun, Kscd broken on amd64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch by (coolo?) on #gentoo-amd64 for kde-base/arts-1.2.1 to work on amd64
arts-1.2.1-buffer.patch (text/plain), 745 bytes, created by
Danny van Dyk (RETIRED)
on 2004-03-24 07:06:01 UTC
(
hide
)
Description:
Patch by (coolo?) on #gentoo-amd64 for kde-base/arts-1.2.1 to work on amd64
Filename:
MIME Type:
Creator:
Danny van Dyk (RETIRED)
Created:
2004-03-24 07:06:01 UTC
Size:
745 bytes
patch
obsolete
>--- 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; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41472
: 27920 |
27921