@@ -331,29 +331,29 @@ internal class _AnyRandomAccessCollectionBox<Element>
331
331
@_versioned
332
332
@_inlineable
333
333
internal func _index(
334
- _ i: _AnyIndexBox , offsetBy n: Int64
334
+ _ i: _AnyIndexBox , offsetBy n: Int
335
335
) -> _AnyIndexBox {
336
336
_abstract ( )
337
337
}
338
338
339
339
@_versioned
340
340
@_inlineable
341
341
internal func _index(
342
- _ i: _AnyIndexBox , offsetBy n: Int64 , limitedBy limit: _AnyIndexBox
342
+ _ i: _AnyIndexBox , offsetBy n: Int , limitedBy limit: _AnyIndexBox
343
343
) -> _AnyIndexBox ? {
344
344
_abstract ( )
345
345
}
346
346
347
347
@_versioned
348
348
@_inlineable
349
- internal func _formIndex( _ i: inout _AnyIndexBox , offsetBy n: Int64 ) {
349
+ internal func _formIndex( _ i: inout _AnyIndexBox , offsetBy n: Int ) {
350
350
_abstract ( )
351
351
}
352
352
353
353
@_versioned
354
354
@_inlineable
355
355
internal func _formIndex(
356
- _ i: inout _AnyIndexBox , offsetBy n: Int64 , limitedBy limit: _AnyIndexBox
356
+ _ i: inout _AnyIndexBox , offsetBy n: Int , limitedBy limit: _AnyIndexBox
357
357
) -> Bool {
358
358
_abstract ( )
359
359
}
@@ -362,7 +362,7 @@ internal class _AnyRandomAccessCollectionBox<Element>
362
362
@_inlineable
363
363
internal func _distance(
364
364
from start: _AnyIndexBox , to end: _AnyIndexBox
365
- ) -> Int64 {
365
+ ) -> Int {
366
366
_abstract ( )
367
367
}
368
368
@@ -381,7 +381,7 @@ internal class _AnyRandomAccessCollectionBox<Element>
381
381
382
382
@_inlineable // FIXME(sil-serialize-all)
383
383
@_versioned
384
- internal var _count : Int64 { _abstract ( ) }
384
+ internal var _count : Int { _abstract ( ) }
385
385
386
386
// TODO: swift-3-indexing-model: forward the following methods.
387
387
/*
@@ -628,7 +628,7 @@ internal final class _${Kind}Box<S : ${Kind}> : _Any${Kind}Box<S.Iterator.Elemen
628
628
@_versioned
629
629
@_inlineable
630
630
internal override func _index(
631
- _ i: _AnyIndexBox , offsetBy n: Int64
631
+ _ i: _AnyIndexBox , offsetBy n: Int
632
632
) -> _AnyIndexBox {
633
633
return _IndexBox ( _base: _base. index ( _unbox ( i) , offsetBy: numericCast ( n) ) )
634
634
}
@@ -637,7 +637,7 @@ internal final class _${Kind}Box<S : ${Kind}> : _Any${Kind}Box<S.Iterator.Elemen
637
637
@_inlineable
638
638
internal override func _index(
639
639
_ i: _AnyIndexBox ,
640
- offsetBy n: Int64 ,
640
+ offsetBy n: Int ,
641
641
limitedBy limit: _AnyIndexBox
642
642
) -> _AnyIndexBox ? {
643
643
return _base. index (
@@ -650,7 +650,7 @@ internal final class _${Kind}Box<S : ${Kind}> : _Any${Kind}Box<S.Iterator.Elemen
650
650
@_versioned
651
651
@_inlineable
652
652
internal override func _formIndex(
653
- _ i: inout _AnyIndexBox , offsetBy n: Int64
653
+ _ i: inout _AnyIndexBox , offsetBy n: Int
654
654
) {
655
655
if let box = i as? _IndexBox < S . Index > {
656
656
return _base. formIndex ( & box. _base, offsetBy: numericCast ( n) )
@@ -661,7 +661,7 @@ internal final class _${Kind}Box<S : ${Kind}> : _Any${Kind}Box<S.Iterator.Elemen
661
661
@_versioned
662
662
@_inlineable
663
663
internal override func _formIndex(
664
- _ i: inout _AnyIndexBox , offsetBy n: Int64 , limitedBy limit: _AnyIndexBox
664
+ _ i: inout _AnyIndexBox , offsetBy n: Int , limitedBy limit: _AnyIndexBox
665
665
) -> Bool {
666
666
if let box = i as? _IndexBox < S . Index > {
667
667
return _base. formIndex (
@@ -677,13 +677,13 @@ internal final class _${Kind}Box<S : ${Kind}> : _Any${Kind}Box<S.Iterator.Elemen
677
677
internal override func _distance(
678
678
from start: _AnyIndexBox ,
679
679
to end: _AnyIndexBox
680
- ) -> Int64 {
680
+ ) -> Int {
681
681
return numericCast ( _base. distance ( from: _unbox ( start) , to: _unbox ( end) ) )
682
682
}
683
683
684
684
@_versioned
685
685
@_inlineable
686
- internal override var _count : Int64 {
686
+ internal override var _count : Int {
687
687
return numericCast ( _base. count)
688
688
}
689
689
@@ -1151,7 +1151,7 @@ extension ${Self}: ${SelfProtocol} {
1151
1151
}
1152
1152
1153
1153
@_inlineable
1154
- public func index( _ i: Index , offsetBy n: Int64 ) -> Index {
1154
+ public func index( _ i: Index , offsetBy n: Int ) -> Index {
1155
1155
return AnyIndex ( _box: _box. _index ( i. _box, offsetBy: n) )
1156
1156
}
1157
1157
0 commit comments