Skip to content

Commit

Permalink
Add Sendable to BigInt and BigFrac.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriebling committed Oct 10, 2024
1 parent 8eff157 commit 63a4619
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 2 deletions.
79 changes: 79 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/BigInt.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1600"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigInt"
BuildableName = "BigInt"
BlueprintName = "BigInt"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigIntTests"
BuildableName = "BigIntTests"
BlueprintName = "BigIntTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigInt"
BuildableName = "BigInt"
BlueprintName = "BigInt"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion Sources/BigInt/BigFrac.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Leif Ibsen on 26/06/2022.
//

public struct BFraction: CustomStringConvertible, Comparable, Equatable {
public struct BFraction: CustomStringConvertible, Comparable, Codable, Sendable, Equatable {

mutating func normalize() {
let g = self.numerator.gcd(self.denominator)
Expand Down
2 changes: 1 addition & 1 deletion Sources/BigInt/BigInt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ precedencegroup ExponentiationPrecedence {

infix operator ** : ExponentiationPrecedence

public struct BInt: CustomStringConvertible, Comparable, Codable, Equatable, Hashable {
public struct BInt: CustomStringConvertible, Comparable, Codable, Sendable, Equatable, Hashable {

// MARK: - Constants

Expand Down

0 comments on commit 63a4619

Please sign in to comment.