Skip to content

Upgrading for new integer protocols. #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PlaygroundLogger/PlaygroundLogger/Common.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func boundCheckRanges(_ ranges : [ChildrenRange], _ upper_bound : UInt64) -> [Ch
return actual_ranges
}

extension Integer where Self.Stride: SignedInteger {
extension FixedWidthInteger where Self.Stride: SignedInteger {
func doFor (f: (Self) -> ()) {
for x in CountableRange(uncheckedBounds: (lower: 0 as Self, upper:self)) {
f(x)
Expand Down
2 changes: 1 addition & 1 deletion PlaygroundLogger/PlaygroundLogger/LoggerMirror.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final class LoggerMirror {

var count: Int {
let direct_count = self.mirror.children.count
let base_count = (nil == self.superclass ? 0 : 1)
let base_count: Int64 = (nil == self.superclass ? 0 : 1)
return Int(direct_count+base_count)
}

Expand Down