Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

Building error caused by wrong function declaration inside Int extension #36

Open
davegomez opened this issue Oct 31, 2014 · 0 comments

Comments

@davegomez
Copy link

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 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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant