From 946bbe647cb3bebbf46d41e2bcba6934744b59d9 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Thu, 5 Feb 2015 10:53:02 -0500 Subject: [PATCH] niti: Fixed method NativeString::copy_to in intern_call Signed-off-by: Lucas Bajolet --- src/interpreter/naive_interpreter.nit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interpreter/naive_interpreter.nit b/src/interpreter/naive_interpreter.nit index aa95eb4..bb0b3b3 100644 --- a/src/interpreter/naive_interpreter.nit +++ b/src/interpreter/naive_interpreter.nit @@ -970,13 +970,13 @@ redef class AMethPropdef if fromval < 0 then debug("Illegal access on {recvval} for element {fromval}/{recvval.length}") end - if fromval + lenval >= recvval.length then + if fromval + lenval > recvval.length then debug("Illegal access on {recvval} for element {fromval}+{lenval}/{recvval.length}") end if toval < 0 then debug("Illegal access on {destval} for element {toval}/{destval.length}") end - if toval + lenval >= destval.length then + if toval + lenval > destval.length then debug("Illegal access on {destval} for element {toval}+{lenval}/{destval.length}") end recvval.as(FlatBuffer).copy(fromval, lenval, destval, toval) -- 1.7.9.5