1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Adjust types

This commit is contained in:
Nobuyoshi Nakada 2020-02-29 21:42:18 +09:00
parent 403675e8dc
commit af1863734c
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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++) {