From fd3208c288e2d74399462a9c8026f224769f67c2 Mon Sep 17 00:00:00 2001 From: Mark Loeser Date: Tue, 3 Jan 2006 01:24:26 +0000 Subject: Add patch to fix compilation on gcc-4, thanks to Diego Pettenò ; bug #106406 (Portage version: 2.1_pre3-r1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flobopuyo/files/flobopuyo-0.20-gcc4.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 games-puzzle/flobopuyo/files/flobopuyo-0.20-gcc4.patch (limited to 'games-puzzle/flobopuyo/files') diff --git a/games-puzzle/flobopuyo/files/flobopuyo-0.20-gcc4.patch b/games-puzzle/flobopuyo/files/flobopuyo-0.20-gcc4.patch new file mode 100644 index 000000000000..6c5d39445a4c --- /dev/null +++ b/games-puzzle/flobopuyo/files/flobopuyo-0.20-gcc4.patch @@ -0,0 +1,25 @@ +Index: flobopuyo-0.20/IosVector.cpp +=================================================================== +--- flobopuyo-0.20.orig/IosVector.cpp ++++ flobopuyo-0.20/IosVector.cpp +@@ -102,6 +102,6 @@ void IosVector::increaseVectorSize() + void IosVector::dumpVector() const { + fprintf(stderr, "Size: %d\n", getSize()); + for (int i = 0, j = getSize() ; i < j ; i++) +- fprintf(stderr, "elt[%d]=%d ", i, (int)getElementAt(i)); ++ fprintf(stderr, "elt[%d]=%p ", i, getElementAt(i)); + fprintf(stderr, "\n"); + } +Index: flobopuyo-0.20/PuyoGame.cpp +=================================================================== +--- flobopuyo-0.20.orig/PuyoGame.cpp ++++ flobopuyo-0.20/PuyoGame.cpp +@@ -45,7 +45,7 @@ PuyoState PuyoRandomSystem::getPuyoForSe + return (PuyoState)newItem; + } + else +- return (PuyoState)(int)(sequenceItems.getElementAt(sequence)); ++ return (PuyoState)(long)(sequenceItems.getElementAt(sequence)); + } + + PuyoPuyo::PuyoPuyo(PuyoState state) -- cgit v1.2.3-65-gdbad