[前][次][番号順一覧][スレッド一覧]

ruby-changes:60240

From: Nobuyoshi <ko1@a...>
Date: Sat, 29 Feb 2020 21:46:17 +0900 (JST)
Subject: [ruby-changes:60240] af1863734c (master): Adjust types

https://git.ruby-lang.org/ruby.git/commit/?id=af1863734c

From af1863734ca6e68f5a1746f2962567c010b3fc92 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 29 Feb 2020 21:42:18 +0900
Subject: Adjust types


diff --git a/spec/ruby/optional/capi/ext/string_spec.c b/spec/ruby/optional/capi/ext/string_spec.c
index 97f6b03..74ff2d6 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) { https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/string_spec.c#L285
 }
 
 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++) {
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]