# HG changeset patch # User Teemu Piippo # Date 1469265787 -10800 # Node ID e3794f48a58983a9df4420499cd13d22d01ed627 # Parent 5948441a1951ccc95b1bf760516991fd185ab89c Fixed Container::splice() method trimming the last element even when not supposed to diff -r 5948441a1951 -r e3794f48a589 sources/list.h --- a/sources/list.h Sat Jul 23 12:22:23 2016 +0300 +++ b/sources/list.h Sat Jul 23 12:23:07 2016 +0300 @@ -270,8 +270,8 @@ Self splice(int start, int end, int step = 1) const { - start = clamp(start, 0, size() - 1); - end = clamp(end, 0, size() - 1); + start = clamp(start, 0, size()); + end = clamp(end, 0, size()); if (end <= start) {