Skip to content

Commit 73d11d0

Browse files
committed
Migrate to Xcode 11.4.
1 parent 5f9c41e commit 73d11d0

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.3.5 (2020-04-05)
4+
- Port to Swift 5.2
5+
- Migrated project to Xcode 11.4
6+
37
## 2.3.4 (2020-02-11)
48
- Include iOS build target
59

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Swift NumberKit
22

3-
<p>
4-
<a href="https://developer.apple.com/osx/"><img src="https://img.shields.io/badge/Platform-macOS,%20iOS-blue.svg?style=flat" alt="Platform: macOS, iOS" /></a>
5-
<a href="https://developer.apple.com/swift/"><img src="https://img.shields.io/badge/Language-Swift%205.1-green.svg?style=flat" alt="Language: Swift 5.1" /></a>
6-
<a href="https://developer.apple.com/xcode/"><img src="https://img.shields.io/badge/IDE-Xcode%2011.3-orange.svg?style=flat" alt="IDE: Xcode 11.3" /></a>
7-
<a href="https://raw.githubusercontent.com/objecthub/swift-lispkit/master/LICENSE"><img src="http://img.shields.io/badge/License-Apache-lightgrey.svg?style=flat" alt="License: Apache" /></a>
8-
</p>
9-
3+
[![Platforms](https://img.shields.io/badge/Platforms-macOS%20%7C%20iOS-blue.svg?style=flat)](https://developer.apple.com/osx/) [![Language](https://img.shields.io/badge/Language-Swift%205.2-green.svg?style=flat)](https://developer.apple.com/swift/) [![IDE](https://img.shields.io/badge/IDE-Xcode%2011.4-orange.svg?style=flat)](https://developer.apple.com/xcode/) [![Package managers](https://img.shields.io/badge/Package%20managers-SwiftPM%20%7C%20Carthage-8E64B0.svg?style=flat)](https://github.com/Carthage/Carthage) [![License](http://img.shields.io/badge/License-Apache-lightgrey.svg?style=flat)](https://raw.githubusercontent.com/objecthub/swift-numberkit/master/LICENSE)
104

115
## Overview
126

@@ -19,8 +13,8 @@ each represented as a struct:
1913
3. `Complex`: complex floating-point numbers
2014

2115
**Requirements**:
22-
- Xcode 11.3
23-
- Swift 5.1
16+
- Xcode 11.4
17+
- Swift 5.2
2418
- macOS with Xcode or Swift Package Manager
2519
- Linux with Swift Package Manager
2620

Sources/NumberKit/BigInt.swift

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// NumberKit
44
//
55
// Created by Matthias Zenger on 12/08/2015.
6-
// Copyright © 2015-2019 Matthias Zenger. All rights reserved.
6+
// Copyright © 2015-2020 Matthias Zenger. All rights reserved.
77
//
88
// Licensed under the Apache License, Version 2.0 (the "License");
99
// you may not use this file except in compliance with the License.
@@ -39,8 +39,8 @@ public struct BigInt: Hashable,
3939

4040
// Redefine the coding key names.
4141
enum CodingKeys: String, CodingKey {
42-
case uwords = "words"
43-
case negative
42+
case uwords = "words"
43+
case negative
4444
}
4545

4646
// This is an array of `UInt32` words. The lowest significant word comes first in
@@ -1136,19 +1136,22 @@ extension BigInt: IntegerNumber,
11361136
return (self.plus(rhs), overflow: false)
11371137
}
11381138

1139-
public func subtractingReportingOverflow(_ rhs: BigInt) -> (partialValue: BigInt, overflow: Bool) {
1139+
public func subtractingReportingOverflow(_ rhs: BigInt) -> (partialValue: BigInt,
1140+
overflow: Bool) {
11401141
return (self.minus(rhs), overflow: false)
11411142
}
11421143

1143-
public func multipliedReportingOverflow(by rhs: BigInt) -> (partialValue: BigInt, overflow: Bool) {
1144+
public func multipliedReportingOverflow(by rhs: BigInt) -> (partialValue: BigInt,
1145+
overflow: Bool) {
11441146
return (self.times(rhs), overflow: false)
11451147
}
11461148

11471149
public func dividedReportingOverflow(by rhs: BigInt) -> (partialValue: BigInt, overflow: Bool) {
11481150
return (self.divided(by: rhs).quotient, overflow: false)
11491151
}
11501152

1151-
public func remainderReportingOverflow(dividingBy rhs: BigInt) -> (partialValue: BigInt, overflow: Bool) {
1153+
public func remainderReportingOverflow(dividingBy rhs: BigInt) -> (partialValue: BigInt,
1154+
overflow: Bool) {
11521155
return (self.divided(by: rhs).remainder, overflow: false)
11531156
}
11541157

0 commit comments

Comments
 (0)