still finding index errors

This commit is contained in:
Torsten Ruger
2015-10-27 18:45:56 +02:00
parent 444ad75e1e
commit 79cf59c4e2
3 changed files with 7 additions and 2 deletions

View File

@ -166,7 +166,7 @@ module Parfait
grow_to(index)
end
# start one higher than offset, which is where the length is
internal_object_set( index + 1 + offset, value)
internal_object_set( index + offset, value)
end
# set the value at index.
@ -176,7 +176,7 @@ module Parfait
ret = nil
if(index <= self.get_length)
# start one higher than offset, which is where the length is
ret = internal_object_get(index + offset + 1)
ret = internal_object_get(index + offset )
end
ret
end