diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-05 22:39:08 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-10 13:03:22 +0900 |
commit | 51025a901309eefa8ae81ff386bd078f14707b70 (patch) | |
tree | 7e5b5fb51da61c11c7c13d12f68cb54170ded38c /gc.c | |
parent | fbe3651466c2b552e19fe8fae73dfc18278433d9 (diff) |
Use `size_t` for `rb_raw_obj_info`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6092
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13650,7 +13650,7 @@ rb_method_type_name(rb_method_type_t type) FL_TEST((ary), RARRAY_EMBED_FLAG)!=0) static void -rb_raw_iseq_info(char *buff, const int buff_size, const rb_iseq_t *iseq) +rb_raw_iseq_info(char *const buff, const size_t buff_size, const rb_iseq_t *iseq) { if (buff_size > 0 && ISEQ_BODY(iseq) && ISEQ_BODY(iseq)->location.label && !RB_TYPE_P(ISEQ_BODY(iseq)->location.pathobj, T_MOVED)) { VALUE path = rb_iseq_path(iseq); @@ -13672,9 +13672,9 @@ str_len_no_raise(VALUE str) } const char * -rb_raw_obj_info(char *buff, const int buff_size, VALUE obj) +rb_raw_obj_info(char *const buff, const size_t buff_size, VALUE obj) { - int pos = 0; + size_t pos = 0; void *poisoned = asan_unpoison_object_temporary(obj); #define BUFF_ARGS buff + pos, buff_size - pos |