Date: Sun, 11 Feb 2024 11:49:44 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 31c5bcf6d5b0 - main - databases/pgrouting: fix build on 32-bits Message-ID: <202402111149.41BBniCM085270@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=31c5bcf6d5b017a74356e8520dfffdb5781bb04b commit 31c5bcf6d5b017a74356e8520dfffdb5781bb04b Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-02-09 00:40:11 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-02-11 11:48:46 +0000 databases/pgrouting: fix build on 32-bits /wrkdirs/usr/ports/databases/pgrouting/work/pgrouting-3.6.0/src/cpp_common/get_check_data.cpp:365:12: error: no matching function for call to 'get_array' return get_array(pg_array, the_size, true); ^~~~~~~~~ /wrkdirs/usr/ports/databases/pgrouting/work/pgrouting-3.6.0/src/cpp_common/get_check_data.cpp:265:1: note: candidate function not viable: no known conversion from 'uint64_t *' (aka 'unsigned long long *') to 'size_t *' (aka 'unsigned int *') for 2nd argument get_array(ArrayType *v, size_t *arrlen, bool allow_empty) { ^ 1 error generated. --- .../files/patch-src_cpp__common_get__check__data.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/databases/pgrouting/files/patch-src_cpp__common_get__check__data.cpp b/databases/pgrouting/files/patch-src_cpp__common_get__check__data.cpp new file mode 100644 index 000000000000..13f7a0dd577d --- /dev/null +++ b/databases/pgrouting/files/patch-src_cpp__common_get__check__data.cpp @@ -0,0 +1,11 @@ +--- src/cpp_common/get_check_data.cpp.orig 2024-02-09 00:36:37 UTC ++++ src/cpp_common/get_check_data.cpp +@@ -262,7 +262,7 @@ int64_t* + * @returns The resultant array + */ + int64_t* +-get_array(ArrayType *v, size_t *arrlen, bool allow_empty) { ++get_array(ArrayType *v, uint64_t *arrlen, bool allow_empty) { + int64_t *c_array = nullptr; + + auto element_type = ARR_ELEMTYPE(v);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402111149.41BBniCM085270>