Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10997] 0x10001L value imported as UInt32 #53387

Open
krzyzanowskim opened this issue Jun 22, 2019 · 2 comments
Open

[SR-10997] 0x10001L value imported as UInt32 #53387

krzyzanowskim opened this issue Jun 22, 2019 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@krzyzanowskim
Copy link
Contributor

Previous ID SR-10997
Radar None
Original Reporter @krzyzanowskim
Type Bug
Environment

Xcode 10.2.1, macOS

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, ClangImporter
Assignee None
Priority Medium

md5: 0d553324388208866c0984e7a2e1d97c

Issue Description:

Given a C macro

# define RSA_F4  0x10001L

when imported by Swift, it's UInt for x86_64, but UInt32 for arm64

@belkadan
Copy link
Contributor

I can't reproduce this in an isolated test case. Can you attach a project or playground where it happens for you?

@belkadan
Copy link
Contributor

Also, is there any reason to think there might be different versions of the rsa.h header on iOS vs. macOS?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants