Skip to content

swift run: error 'Int' has no member 'rawValue' #9

Closed
@UnGast

Description

@UnGast

Thanks for the library. I'm totally new to this and your lib is the first I got working.

After #8, when running swift run I get errors of this kind:

error: value of type 'Int' has no member 'rawValue' static let argb8888 = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_ARGB8888.rawValue))

So I went to back to a version before this pull was merged and it worked.

MacOS 10.15.1
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Target: x86_64-apple-darwin19.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions