about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/rt/rust_shape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp
index 9f469aa9d96..0878e0ebaff 100644
--- a/src/rt/rust_shape.cpp
+++ b/src/rt/rust_shape.cpp
@@ -230,7 +230,7 @@ struct type_param {
             return NULL;
 
         type_param *ptrs = arena.alloc<type_param>(n_params);
-        for (int i = 0; i < n_params; i++) {
+        for (uint32_t i = 0; i < n_params; i++) {
             const type_desc *subtydesc = tydesc->first_param[i];
             ptrs[i].shape = subtydesc->shape;
             ptrs[i].tables = subtydesc->shape_tables;