Skip to content

Commit

Permalink
Merge pull request #5 from piotte13/master
Browse files Browse the repository at this point in the history
init duplicate
  • Loading branch information
lemire authored Sep 25, 2018
2 parents 027198c + fab87e9 commit 44955c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Bitset/Bitset.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class Bitset: Sequence, Equatable, CustomStringConvertible,

// make a bitset containing the list of integers, all values must be non-negative
// adding the value i to the bitset will cause the use of least (i+8)/8 bytes
public init(_ allints: Int...) {
public init(_ allints: [Int]) {
var mymax = 0
for i in allints { mymax = mymax < i ? i : mymax }
wordcount = (mymax+63)/64 + 1
Expand Down

0 comments on commit 44955c3

Please sign in to comment.