summaryrefslogtreecommitdiffhomepage
path: root/src/value_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/value_array.h')
-rw-r--r--src/value_array.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/value_array.h b/src/value_array.h
index cabd2426d..6089b8aa0 100644
--- a/src/value_array.h
+++ b/src/value_array.h
@@ -1,11 +1,12 @@
#ifndef MRB_VALUE_ARRAY_H__
#define MRB_VALUE_ARRAY_H__
-#include "mruby.h"
+#include <mruby.h>
static inline void
value_move(mrb_value *s1, const mrb_value *s2, size_t n)
{
+ if (n == 0) return;
if (s1 > s2 && s1 < s2 + n)
{
s1 += n;