summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/llvmpy/files/llvmpy-0.12.2-return-type.patch')
-rw-r--r--dev-python/llvmpy/files/llvmpy-0.12.2-return-type.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/llvmpy/files/llvmpy-0.12.2-return-type.patch b/dev-python/llvmpy/files/llvmpy-0.12.2-return-type.patch
new file mode 100644
index 00000000000..2fcb2beab7a
--- /dev/null
+++ b/dev-python/llvmpy/files/llvmpy-0.12.2-return-type.patch
@@ -0,0 +1,13 @@
+gentoo qa: type conversion on return triggered by gcc warnings
+bicatali - feb 2014
+--- llvmpy/include/llvm_binding/conversion.h.orig 2014-02-10 08:45:29.516304878 -0800
++++ llvmpy/include/llvm_binding/conversion.h 2014-02-10 08:45:58.190474249 -0800
+@@ -101,7 +101,7 @@
+ val = PyInt_AsLong(intobj);
+ }
+ if (PyErr_Occurred()){
+- return NULL;
++ return 1;
+ }
+ // success
+ return 1;