diff options
Diffstat (limited to 'games-fps/doomsday/files/doomsday-1.9.8-openal-64bit-fix.patch')
-rw-r--r-- | games-fps/doomsday/files/doomsday-1.9.8-openal-64bit-fix.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/games-fps/doomsday/files/doomsday-1.9.8-openal-64bit-fix.patch b/games-fps/doomsday/files/doomsday-1.9.8-openal-64bit-fix.patch new file mode 100644 index 000000000000..6c24bfb4480c --- /dev/null +++ b/games-fps/doomsday/files/doomsday-1.9.8-openal-64bit-fix.patch @@ -0,0 +1,34 @@ +https://github.com/skyjake/Doomsday-Engine/commit/9c1fd1ee90d333332660c1aeef1addae93c2770e + +commit 9c1fd1ee90d333332660c1aeef1addae93c2770e +Author: skyjake <skyjake@users.sf.net> +Date: Sun Dec 30 16:45:56 2012 +0200 + + Fixed|OpenAL: Integer conversion in 64-bit build + +diff --git a/doomsday/plugins/openal/src/driver_openal.cpp b/doomsday/plugins/openal/src/driver_openal.cpp +index dd3cb2e..683345b 100644 +--- a/doomsday/plugins/openal/src/driver_openal.cpp ++++ b/doomsday/plugins/openal/src/driver_openal.cpp +@@ -56,8 +56,8 @@ + + #define PI 3.141592654 + +-#define SRC(buf) ((ALuint)buf->ptr3D) +-#define BUF(buf) ((ALuint)buf->ptr) ++#define SRC(buf) ( (ALuint) PTR2INT(buf->ptr3D) ) ++#define BUF(buf) ( (ALuint) PTR2INT(buf->ptr) ) + + //enum { VX, VY, VZ }; + +@@ -233,8 +233,8 @@ sfxbuffer_t* DS_SFX_CreateBuffer(int flags, int bits, int rate) + // Create the buffer object. + buf = static_cast<sfxbuffer_t*>(Z_Calloc(sizeof(*buf), PU_APPSTATIC, 0)); + +- buf->ptr = (void*) bufName; +- buf->ptr3D = (void*) srcName; ++ buf->ptr = INT2PTR(void, bufName); ++ buf->ptr3D = INT2PTR(void, srcName); + buf->bytes = bits / 8; + buf->rate = rate; + buf->flags = flags; |