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

Fixed: Swift error in file Archive+MemoryFile.swift #322

Closed
wants to merge 1 commit into from

Conversation

Dirk-Vantas
Copy link

@Dirk-Vantas Dirk-Vantas commented Jun 7, 2024

Fixes #320

Fixed this smal error occuring during building of the package :

error: value of optional type 'UnsafeMutablePointer<FILE>?' (aka 'Optional<UnsafeMutablePointer<_IO_FILE>>') must be unwrapped to a value of type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>')
fseeko(result, 0, SEEK_END)

Changes proposed in this PR

The proposed change in the MemoryFile class aims to address a build error related to the unwrapping of an optional value. The error message indicated that result, which is of the type UnsafeMutablePointer? (an optional pointer to a file), must be explicitly unwrapped before it can be used in the fseeko function call.

fixed : error: value of optional type 'UnsafeMutablePointer<FILE>?'
@weichsel
Copy link
Owner

Hi Dirk,

Thanks for making me aware of this. I just merge #323, which obsoletes append mode for the MemoryFile type.
Can you please check development to see if this fixes your build issue?

@Dirk-Vantas
Copy link
Author

Hey Thomas

the dev branch builds without problems :)

@Dirk-Vantas
Copy link
Author

The project I am working on uses the main branch tho, when do you think this will be merged into that?

@weichsel weichsel closed this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Project won't build on Ubuntu 24.04 with Swift 5.10 Release
2 participants