File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 445d3fe39cbe6b56b72fd08065e3569d73aeb10b
2
+ refs/heads/master: 6bce296d9fe42a54276198e06389aa8cd85a4262
Original file line number Diff line number Diff line change @@ -65,12 +65,11 @@ fn print_debug_info[T](vec[T] v) {
65
65
66
66
// Returns elements from [start..end) from v.
67
67
fn slice[ T ] ( vec[ T ] v, int start, int end) -> vec[ T ] {
68
- check ( 0 <= start) ;
69
- check ( start <= end) ;
70
- // FIXME #108: This doesn't work yet.
71
- //check(end <= int(len[T](v)));
68
+ check ( 0 <= start) ;
69
+ check ( start <= end) ;
70
+ check ( end <= ( len[ T ] ( v) as int ) ) ;
72
71
auto result = alloc[ T ] ( ( end - start) as uint ) ;
73
- let mutable int i = start;
72
+ let int i = start;
74
73
while ( i < end) {
75
74
result += vec ( v. ( i) ) ;
76
75
i += 1 ;
You can’t perform that action at this time.
0 commit comments