From 41a1892d6f470bae2bcd4b58f26f3b0d16787f3a Mon Sep 17 00:00:00 2001 From: agcr Date: Thu, 26 Dec 2024 23:49:57 +0300 Subject: [PATCH] Fix build with clang 18 on FreeBSD --- src/annoymodule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/annoymodule.cc b/src/annoymodule.cc index 6bb0ae1b..ab785be3 100644 --- a/src/annoymodule.cc +++ b/src/annoymodule.cc @@ -179,7 +179,7 @@ py_an_init(py_annoy *self, PyObject *args, PyObject *kwargs) { int f; static char const * kwlist[] = {"f", "metric", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "i|s", (char**)kwlist, &f, &metric)) - return (int) NULL; + return -1; return 0; }