This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 62b2878448 GH-46523: [GLib] Fix compiler warning: use gsize instead of
int (#46524)
62b2878448 is described below
commit 62b287844887f49bd10e21725c33fe8600835a74
Author: Hiroyuki Sato <[email protected]>
AuthorDate: Wed May 21 12:56:12 2025 +0900
GH-46523: [GLib] Fix compiler warning: use gsize instead of int (#46524)
### Rationale for this change
`GArrowFixedShapeTensorDataType` introduced in #46305.
In that work, I had to use the variable type `gsize` instead of `int` in
the function.
### What changes are included in this PR?
Change `int` to `gsize`.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
Yes.
* GitHub Issue: #46523
Authored-by: Hiroyuki Sato <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
c_glib/arrow-glib/basic-data-type.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/c_glib/arrow-glib/basic-data-type.cpp
b/c_glib/arrow-glib/basic-data-type.cpp
index 8214c21346..3a3366bb1c 100644
--- a/c_glib/arrow-glib/basic-data-type.cpp
+++ b/c_glib/arrow-glib/basic-data-type.cpp
@@ -2364,15 +2364,15 @@ garrow_fixed_shape_tensor_data_type_new(GArrowDataType
*value_type,
auto arrow_value_type = garrow_data_type_get_raw(value_type);
- for (int i = 0; i < shape_length; i++) {
+ for (gsize i = 0; i < shape_length; i++) {
arrow_shape.push_back(shape[i]);
}
- for (int i = 0; i < permutation_length; i++) {
+ for (gsize i = 0; i < permutation_length; i++) {
arrow_permutation.push_back(permutation[i]);
}
- for (int i = 0; i < n_dim_names; i++) {
+ for (gsize i = 0; i < n_dim_names; i++) {
arrow_dim_names.push_back(dim_names[i]);
}