Skip to content

Commit

Permalink
Improve stride performance (#88) by reverting parts of (d6627da).
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Oct 16, 2024
1 parent cbbadb0 commit 11588f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CoreKit/BinaryInteger+Integers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ extension BinaryInteger {

} else {
Swift.assert(Self.size < Other.size)
let bit = Self.isSigned ? source.appendix : Bit.zero
let bit = Bit.init(((Self.isSigned ? source.isNegative : false)))
let limit = Count(raw: size.decremented(Self.isSigned).unchecked())
let count = source.nondescending(bit)
return Self(load: source).veto(limit < count)
Expand Down

0 comments on commit 11588f9

Please sign in to comment.