You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.
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
}
The text was updated successfully, but these errors were encountered:
davegomez
changed the title
Building errors caused by some function declarations inside the Int extension
Building error caused by wrong function declaration inside Int extension
Oct 31, 2014
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:The text was updated successfully, but these errors were encountered: