1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

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.
This commit is contained in:
Piotr Kubaj 2024-02-09 01:40:11 +01:00
parent 5c4db1815f
commit 31c5bcf6d5

View File

@ -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);