HomeFreeBSD

databases/tiledb: Fix build on i386

Description

databases/tiledb: Fix build on i386

/wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:281:50: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]

return {static_cast<uint8_t*>(data_.data()), data_.size()};
                                             ^~~~~~~~~~~~

/wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:281:50: note: insert an explicit cast to silence this issue

return {static_cast<uint8_t*>(data_.data()), data_.size()};
                                             ^~~~~~~~~~~~
                                             static_cast<size_type>( )

/wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:291:53: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]

return {static_cast<uint8_t*>(offsets_.data()), offsets_.size()};
                                                ^~~~~~~~~~~~~~~

/wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.17.1/tiledb/../tiledb/sm/array_schema/enumeration.h:291:53: note: insert an explicit cast to silence this issue

return {static_cast<uint8_t*>(offsets_.data()), offsets_.size()};
                                                ^~~~~~~~~~~~~~~
                                                static_cast<size_type>( )

2 errors generated.

Reference: https://pkg-status.freebsd.org/beefy17/data/main-i386-default/pe4b8bfc7570d_sf7a5903de2/logs/tiledb-2.17.1.log

		https://pkg-status.freebsd.org/beefy15/data/132i386-default/e4b8bfc7570d/logs/tiledb-2.17.1.log

Details

Provenance
sunpoetAuthored on Sep 30 2023, 11:29 PM
Parents
R11:8d331f1bfe8d: databases/plpgsql_check: Update to 2.5.2
Branches
Unknown
Tags
Unknown