Registry Mirror
Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Conversation

@compnerd

Copy link
Copy Markdown
Contributor

xmlGetLineNo is defined as a function returning a Long. The correct type to map that to Swift is CLong. Due to the differences in LP64 and LLP64, long is not mapped equivalently on all environments. However, to maintain the API, use a numericCast to convert the integral type from any compatible type from the C interface.

`xmlGetLineNo` is defined as a function returning a `Long`.  The correct type to map that to Swift is `CLong`.  Due to the differences in LP64 and LLP64, `long` is not mapped equivalently on all environments.  However, to maintain the API, use a `numericCast` to convert the integral type from any compatible type from the C interface.
@mattt
mattt merged commit 6deec4c into SwiftDocOrg:main Apr 20, 2021
@mattt

mattt commented Apr 20, 2021

Copy link
Copy Markdown
Contributor

This is now available in version 0.1.1.

@compnerd
compnerd deleted the patch-2 branch April 24, 2021 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants