[libfann] 72/133: Added patch for bug caused by typo

Christian Kastner chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:07:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch master
in repository libfann.

commit 6b8d8c6d6ce69c8fd14d473f759fb0783ea65c4a
Author: Christian Kastner <debian at kvr.at>
Date:   Sun Feb 6 17:12:04 2011 +0100

    Added patch for bug caused by typo
---
 .../0005-Correct-a-typo-in-a-size-comparison.patch | 25 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/0005-Correct-a-typo-in-a-size-comparison.patch b/debian/patches/0005-Correct-a-typo-in-a-size-comparison.patch
new file mode 100644
index 0000000..885db95
--- /dev/null
+++ b/debian/patches/0005-Correct-a-typo-in-a-size-comparison.patch
@@ -0,0 +1,25 @@
+From: Christian Kastner <debian at kvr.at>
+Date: Sun, 6 Feb 2011 17:09:05 +0100
+Subject: [PATCH] Correct a typo in a size comparison
+
+Origin: http://leenissen.dk/fann/forum/viewtopic.php?f=1&t=626
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/712290
+Last-Update: 2011-02-06
+---
+ python/pyfann/pyfann.i |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/python/pyfann/pyfann.i b/python/pyfann/pyfann.i
+index 47b17ba..ec55535 100644
+--- a/python/pyfann/pyfann.i
++++ b/python/pyfann/pyfann.i
+@@ -108,7 +108,7 @@
+     for (j = 0; j< num; j++)
+     {
+         PyObject* o1=PySequence_GetItem($input,j);
+-        if ((unsigned int)PySequence_Length(o1) == dim) {
++        if ((unsigned int)PySequence_Length(o1) != dim) {
+             PyErr_SetString(PyExc_ValueError,"Size mismatch. All items must be of the same size");
+             SWIG_fail;
+         }
+-- 
diff --git a/debian/patches/series b/debian/patches/series
index ea961ab..10c2cca 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-Link-against-libm.patch
 0003-Patch-upstreams-Makefile.am-reflecting-Debian.patch
 0004-Portable-handling-for-va_list.patch
+0005-Correct-a-typo-in-a-size-comparison.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git



More information about the debian-science-commits mailing list