Avoid negative indexes for JRuby

This commit is contained in:
Luc Thevenard 2022-04-06 15:49:08 -04:00
parent d85f03d66a
commit d54cafb7c8

View File

@ -96,7 +96,7 @@ module Google
raise ArgumentError, "negative array size"
else
start = [self.size-n, 0].max
return self[start..-1]
return self[start...self.size]
end
end