Merge remote-tracking branch 'origin/master' into stable

This commit is contained in:
mimaki
2023-12-29 14:26:19 +09:00
+5 -5
View File
@@ -1727,12 +1727,12 @@ pack_unpack(mrb_state *mrb, mrb_value str, int single)
count--;
}
}
if (single) {
if (RARRAY_LEN(result) > 0) {
return RARRAY_PTR(result)[0];
}
return mrb_nil_value();
}
if (single) {
if (RARRAY_LEN(result) > 0) {
return RARRAY_PTR(result)[0];
}
return mrb_nil_value();
}
return result;
}