string.c: avoid integer type mixture in mrb_str_cat().

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-03-03 16:29:54 +09:00
parent 85c347c3af
commit 876bcba694
+1 -1
View File
@@ -2632,7 +2632,7 @@ mrb_str_cat(mrb_state *mrb, mrb_value str, const char *ptr, size_t len)
{
struct RString *s = mrb_str_ptr(str);
mrb_int capa;
size_t total;
mrb_int total;
ptrdiff_t off = -1;
if (len == 0) return str;