Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 135117 Details for
Bug 158336
GemRB: Infinity Engine Emulator (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix_endian to ensure clean build
fix_endian.patch (text/plain), 1.05 KB, created by
Nick White
on 2007-11-03 20:11:05 UTC
(
hide
)
Description:
Patch to fix_endian to ensure clean build
Filename:
MIME Type:
Creator:
Nick White
Created:
2007-11-03 20:11:05 UTC
Size:
1.05 KB
patch
obsolete
>--- gemrb/plugins/ACMImporter/readers.cpp 2007/11/02 15:43:25 4806 >+++ gemrb/plugins/ACMImporter/readers.cpp 2007/11/03 18:57:46 4807 >@@ -277,21 +277,21 @@ > inline void fix_endian(ieDword &dest) > { > unsigned char tmp; >- tmp=((unsigned char *) dest)[0]; >- ((unsigned char *) dest)[0]=((unsigned char *) dest)[3]; >- ((unsigned char *) dest)[3]=tmp; >+ tmp=((unsigned char *) &dest)[0]; >+ ((unsigned char *) &dest)[0]=((unsigned char *) &dest)[3]; >+ ((unsigned char *) &dest)[3]=tmp; > tmp=((unsigned char *) dest)[1]; >- ((unsigned char *) dest)[1]=((unsigned char *) dest)[2]; >- ((unsigned char *) dest)[2]=tmp; >+ ((unsigned char *) &dest)[1]=((unsigned char *) &dest)[2]; >+ ((unsigned char *) &dest)[2]=tmp; > > } > > inline void fix_endian(ieWord &dest) > { > unsigned char tmp; >- tmp=((unsigned char *) dest)[0]; >- ((unsigned char *) dest)[0]=((unsigned char *) dest)[1]; >- ((unsigned char *) dest)[1]=tmp; >+ tmp=((unsigned char *) &dest)[0]; >+ ((unsigned char *) &dest)[0]=((unsigned char *) &dest)[1]; >+ ((unsigned char *) &dest)[1]=tmp; > } > > int CWavPCMReader::init_reader()
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 158336
:
104184
|
104185
|
104186
|
111412
|
111413
|
111415
|
111416
|
111423
|
117276
|
117277
|
120400
|
120401
|
120483
|
129700
|
135108
|
135117
|
135119
|
135208
|
144585
|
144610
|
144993
|
144995
|
171043
|
182651
|
182653
|
192717
|
201372