summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2011-04-20 13:33:42 +0000
committerAlfredo Tupone <tupone@gentoo.org>2011-04-20 13:33:42 +0000
commit0ed606c87a87d390b545d70531ecd8a3d152b5e9 (patch)
tree07dd63516236202172eac0a3f6b7fb1d7f0ce5ef /games-puzzle/kiki/files/kiki-1.0.2-gcc46.patch
parentRemove unaccessable directories from env file (diff)
downloadgentoo-2-0ed606c87a87d390b545d70531ecd8a3d152b5e9.tar.gz
gentoo-2-0ed606c87a87d390b545d70531ecd8a3d152b5e9.tar.bz2
gentoo-2-0ed606c87a87d390b545d70531ecd8a3d152b5e9.zip
Build with gcc-4.6 Bug #362591
(Portage version: 2.1.9.46/cvs/Linux i686)
Diffstat (limited to 'games-puzzle/kiki/files/kiki-1.0.2-gcc46.patch')
-rw-r--r--games-puzzle/kiki/files/kiki-1.0.2-gcc46.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/games-puzzle/kiki/files/kiki-1.0.2-gcc46.patch b/games-puzzle/kiki/files/kiki-1.0.2-gcc46.patch
new file mode 100644
index 000000000000..457c6d68ae02
--- /dev/null
+++ b/games-puzzle/kiki/files/kiki-1.0.2-gcc46.patch
@@ -0,0 +1,22 @@
+--- SWIG/KikiPy_wrap.cpp.old 2011-04-20 14:48:38.000000000 +0200
++++ SWIG/KikiPy_wrap.cpp 2011-04-20 15:15:08.000000000 +0200
+@@ -12968,7 +12968,7 @@
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+- std::string *result = 0 ;
++ std::string result ;
+
+ if (!PyArg_ParseTuple(args,(char *)"O:KikiText_getText",&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KikiText, 0 | 0 );
+@@ -12976,8 +12976,8 @@
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KikiText_getText" "', argument " "1"" of type '" "KikiText const *""'");
+ }
+ arg1 = reinterpret_cast< KikiText * >(argp1);
+- result = (std::string *) &((KikiText const *)arg1)->getText();
+- resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
++ result = ((KikiText const *)arg1)->getText();
++ resultobj = SWIG_From_std_string(static_cast< std::string >(result));
+ return resultobj;
+ fail:
+ return NULL;