summaryrefslogtreecommitdiff
path: root/math/py-annoy/files/patch-src_annoymodule.cc
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-01-11 21:24:48 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2023-01-11 21:25:23 -0800
commitc5c128b186be0150e2d4885d9dde759fc93b25c9 (patch)
treecf59959ddf6923cd98a71fde122f60eef9b033eb /math/py-annoy/files/patch-src_annoymodule.cc
parentmath/annoy: New port: Approximate Nearest Neighbors in C++ (diff)
math/py-annoy: New port: Approximate Nearest Neighbors in C++
Diffstat (limited to 'math/py-annoy/files/patch-src_annoymodule.cc')
-rw-r--r--math/py-annoy/files/patch-src_annoymodule.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/py-annoy/files/patch-src_annoymodule.cc b/math/py-annoy/files/patch-src_annoymodule.cc
new file mode 100644
index 000000000000..6c0be8088fde
--- /dev/null
+++ b/math/py-annoy/files/patch-src_annoymodule.cc
@@ -0,0 +1,11 @@
+--- src/annoymodule.cc.orig 2023-01-12 04:57:07 UTC
++++ src/annoymodule.cc
+@@ -179,7 +179,7 @@ py_an_init(py_annoy *self, PyObject *args, PyObject *k
+ int f;
+ static char const * kwlist[] = {"f", "metric", NULL};
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "i|s", (char**)kwlist, &f, &metric))
+- return (int) NULL;
++ return 0;
+ return 0;
+ }
+