vm.c (stack_copy): use early return.
@@ -102,10 +102,9 @@ stack_clear(mrb_value *from, size_t count)
static inline void
stack_copy(mrb_value *dst, const mrb_value *src, size_t size)
{
- if (src) {
+ if (!src) return;
memcpy(dst, src, sizeof(mrb_value)*size);
}
-}
static void
stack_init(mrb_state *mrb)
