ExSwift icon indicating copy to clipboard operation
ExSwift copied to clipboard

Building error caused by wrong function declaration inside Int extension

Open davegomez opened this issue 9 years ago • 0 comments

I am trying to use the library in my Swift project and I think is great, but with Xcode 6.1 I found an issue when I try to build the project specifically with the random function declaration. Here's the way it should be declared to work properly:

static func random(#max: Int, min: Int = 0) -> Int {
    return Int(arc4random_uniform(UInt32((max - min) + 1))) + min
}

davegomez avatar Oct 31 '14 05:10 davegomez