diff options
author | Christoph Mende <angelos@gentoo.org> | 2007-10-22 20:30:06 +0000 |
---|---|---|
committer | Christoph Mende <angelos@gentoo.org> | 2007-10-22 20:30:06 +0000 |
commit | 880a64340ff4cd47804d6d9edd102e7cb4e19e0e (patch) | |
tree | e74e873b7e8b59ae34c4234d3eca1e777bbd239a /games-puzzle/magiccube4d/files | |
parent | Dropping ia64 keyword, no hardware to test (diff) | |
download | gentoo-2-880a64340ff4cd47804d6d9edd102e7cb4e19e0e.tar.gz gentoo-2-880a64340ff4cd47804d6d9edd102e7cb4e19e0e.tar.bz2 gentoo-2-880a64340ff4cd47804d6d9edd102e7cb4e19e0e.zip |
Fixed compilation on amd64 and ~amd64 added
(Portage version: 2.1.3.15)
Diffstat (limited to 'games-puzzle/magiccube4d/files')
-rw-r--r-- | games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch b/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch new file mode 100644 index 000000000000..7fbd52871887 --- /dev/null +++ b/games-puzzle/magiccube4d/files/magiccube4d-2.2-64bit-ptr.patch @@ -0,0 +1,53 @@ +diff -Nru magiccube4d-src-2_2.orig/EventHandler.cpp magiccube4d-src-2_2/EventHandler.cpp +--- magiccube4d-src-2_2.orig/EventHandler.cpp 2007-09-30 12:01:46.503967712 +0200 ++++ magiccube4d-src-2_2/EventHandler.cpp 2007-09-30 12:03:23.489172011 +0200 +@@ -20,6 +20,7 @@ + #include <iostream> + #include <unistd.h> + #include <stdio.h> ++#include <stdint.h> + + #include "MagicCube.h" + #include "Puzzlest.h" +@@ -415,7 +416,7 @@ + void + EventHandler::undo_cb(void* argp) + { +- int arg = (int) argp; ++ int arg = (intptr_t) argp; + struct stickerspec grip; + int dir; + int slicesmask; +@@ -461,7 +462,7 @@ + void + EventHandler::redo_cb(void* argp) + { +- int arg = (int) argp; ++ int arg = (intptr_t) argp; + struct stickerspec grip; + int dir; + int slicesmask; +@@ -507,7 +508,7 @@ + void + EventHandler::scramble_cb(void *arg = NULL) + { +- int n = (int)arg; ++ int n = (intptr_t)arg; + struct stickerspec grip; + int i, previous_face = -1; + int ngrips = NFACES * 3 * 3 * 3; +@@ -855,12 +856,12 @@ + void + EventHandler::newPuzzle_cb(void* arg) + { +- if ((int)arg == preferences.getLength()) ++ if ((intptr_t)arg == preferences.getLength()) + { + reset_cb(0); + return; + } +- preferences.setLength((int)arg); ++ preferences.setLength((intptr_t)arg); + int length = preferences.getLength(); + + polymgr->reset(length); |