diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-29 21:42:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-29 21:42:38 +0900 |
commit | af1863734ca6e68f5a1746f2962567c010b3fc92 (patch) | |
tree | bfecd48ba8fe5e6e3095eba21cd0b0414578458f /spec | |
parent | 403675e8dc0f4b9e6b79ace649db1851e7cbba51 (diff) | |
download | ruby-af1863734ca6e68f5a1746f2962567c010b3fc92.tar.gz |
Adjust types
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/optional/capi/ext/string_spec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/ruby/optional/capi/ext/string_spec.c b/spec/ruby/optional/capi/ext/string_spec.c index 97f6b031ef..74ff2d6503 100644 --- a/spec/ruby/optional/capi/ext/string_spec.c +++ b/spec/ruby/optional/capi/ext/string_spec.c @@ -285,9 +285,8 @@ VALUE string_spec_RSTRING_PTR_iterate(VALUE self, VALUE str) { } VALUE string_spec_RSTRING_PTR_iterate_uint32(VALUE self, VALUE str) { - int i; uint32_t* ptr; - int l = RSTRING_LEN(str) / sizeof(uint32_t); + long i, l = RSTRING_LEN(str) / sizeof(uint32_t); ptr = (uint32_t *)RSTRING_PTR(str); for(i = 0; i < l; i++) { |