diff --git a/src/libtiledb.cpp b/src/libtiledb.cpp index be816188a8..887aa09b59 100644 --- a/src/libtiledb.cpp +++ b/src/libtiledb.cpp @@ -757,7 +757,7 @@ XPtr libtiledb_dim(XPtr ctx, Rcpp::stop("dimension domain must be a c(lower bound, upper bound) pair"); } std::array _domain = {static_cast(domain_vec[0]), static_cast(domain_vec[1])}; - int16_t _tile_extent = Rcpp::as(tile_extent); + uint16_t _tile_extent = Rcpp::as(tile_extent); auto dim = new tiledb::Dimension(tiledb::Dimension::create(*ctx.get(), name, _domain, _tile_extent)); auto ptr = make_xptr(dim); return ptr; @@ -925,7 +925,7 @@ SEXP libtiledb_dim_get_domain(XPtr dim) { dim->domain().second}); } case TILEDB_UINT16: { - using DataType = tiledb::impl::tiledb_to_type::type; + using DataType = tiledb::impl::tiledb_to_type::type; return IntegerVector({dim->domain().first, dim->domain().second}); } @@ -1027,7 +1027,7 @@ SEXP libtiledb_dim_get_tile_extent(XPtr dim) { return Rcpp::wrap(static_cast(dim->tile_extent())); } case TILEDB_UINT16: { - using DataType = tiledb::impl::tiledb_to_type::type; + using DataType = tiledb::impl::tiledb_to_type::type; return Rcpp::wrap(static_cast(dim->tile_extent())); } case TILEDB_INT32: {