Repository: single-cell-data/TileDB-SOMA (language: python)

Issue:
[c++] Fix a compiler warning
**Issue and/or context:** As tracked on issue #2407 / [[sc-51048]](https://app.shortcut.com/tiledb-inc/story/51048).

**Changes:**

Fix a compiler warning:

```
/home/ubuntu/git/single-cell-data/TileDB-SOMA/libtiledbsoma/test/common.cc: In function ‘std::unique_ptr<ArrowSchema> helper::create_index_cols_info_schema(const std::vector<DimInfo>&)’:
/home/ubuntu/git/single-cell-data/TileDB-SOMA/libtiledbsoma/test/common.cc:156:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
  156 |     for (size_t i = 0; i < schema->n_children; ++i) {
```

**Notes for Reviewer:**



Discussion / hints:
## [Codecov](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/pull/3310?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 85.50%. Comparing base [(`208c0ab`)](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/commit/208c0abaeda6e1820761ec69a761d3af91465526?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data) to head [(`5e97880`)](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/commit/5e97880c3dc0e9ffb87cb9f948be41ef2ca441f9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data).
> Report is 5 commits behind head on main.

<details><summary>Additional details and impacted files</summary>


```diff
@@            Coverage Diff             @@
##             main    #3310      +/-   ##
==========================================
+ Coverage   85.37%   85.50%   +0.12%     
==========================================
  Files          52       52              
  Lines        5499     5506       +7     
==========================================
+ Hits         4695     4708      +13     
+ Misses        804      798       -6     
```

| [Flag](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/pull/3310/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data) | Coverage Δ | |
|---|---|---|
| [python](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/pull/3310/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data) | `85.50% <ø> (+0.12%)` | :arrow_up: |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data#carryforward-flags-in-the-pull-request-comment) to find out more.

| [Components](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/pull/3310/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data) | Coverage Δ | |
|---|---|---|
| [python_api](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/pull/3310/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data) | `85.50% <85.71%> (+0.12%)` | :arrow_up: |
| [libtiledbsoma](https://app.codecov.io/gh/single-cell-data/TileDB-SOMA/pull/3310/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=single-cell-data) | `∅ <ø> (∅)` | |

</details>

Fix patch:
diff --git a/apis/r/src/rinterface.cpp b/apis/r/src/rinterface.cpp
index 5b1050eddd..4b23663a90 100644
--- a/apis/r/src/rinterface.cpp
+++ b/apis/r/src/rinterface.cpp
@@ -404,7 +404,7 @@ SEXP c_schema(const std::string& uri, Rcpp::XPtr<somactx_wrap_t> ctxxp) {
         ArrowSchemaAllocateChildren(sch, lib_retval->n_children),
         "Bad schema children alloc");
 
-    for (size_t i = 0; i < lib_retval->n_children; i++) {
+    for (size_t i = 0; i < static_cast<size_t>(lib_retval->n_children); i++) {
         spdl::info(
             "[c_schema] Accessing name '{}' format '{}' at position {}",
             std::string(lib_retval->children[i]->name),
diff --git a/apis/r/src/rutilities.cpp b/apis/r/src/rutilities.cpp
index 78b848923b..dc3f2e7355 100644
--- a/apis/r/src/rutilities.cpp
+++ b/apis/r/src/rutilities.cpp
@@ -468,7 +468,7 @@ SEXP convert_domainish(const tdbs::ArrowTable& arrow_table) {
         ArrowArrayAllocateChildren(arr, arrow_array->n_children),
         "Bad array children alloc");
 
-    for (size_t i = 0; i < ncol; i++) {
+    for (size_t i = 0; i < static_cast<size_t>(ncol); i++) {
         if (arrow_array->children[i]->n_buffers == 3) {
             // Arrow semantics: variable-length: buffers 0,1,2 are validity,
             // offsets, data


Test patch:
diff --git a/libtiledbsoma/test/common.cc b/libtiledbsoma/test/common.cc
index 408705f93b..3416a2e9e2 100644
--- a/libtiledbsoma/test/common.cc
+++ b/libtiledbsoma/test/common.cc
@@ -145,7 +145,7 @@ std::unique_ptr<ArrowSchema> create_index_cols_info_schema(
     std::vector<std::string> names(ndim);
     std::vector<tiledb_datatype_t> tiledb_datatypes(ndim);
 
-    for (int i = 0; i < (int)ndim; i++) {
+    for (int i = 0; i < static_cast<int>(ndim); i++) {
         const DimInfo& dim_info = dim_infos[i];
         names[i] = dim_info.name;
         tiledb_datatypes[i] = dim_info.tiledb_datatype;
@@ -153,7 +153,7 @@ std::unique_ptr<ArrowSchema> create_index_cols_info_schema(
 
     auto schema = ArrowAdapter::make_arrow_schema(names, tiledb_datatypes);
 
-    for (size_t i = 0; i < (size_t)schema->n_children; ++i) {
+    for (size_t i = 0; i < static_cast<size_t>(schema->n_children); ++i) {
         if (strcmp(schema->children[i]->name, "soma_geometry")) {
             nanoarrow::UniqueBuffer buffer;
             ArrowMetadataBuilderInit(buffer.get(), nullptr);