Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Threaded FFI returns ExternalAddress instead of an ExternalStructure #9

Open
akgrant43 opened this issue Sep 24, 2019 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@akgrant43
Copy link
Contributor

E.g.:

LGitCommit>>commit_author: commit
	
	^ self
		call: #(LGitSignature * git_commit_author #(self))
		options: #()

answers an ExternalAddress. This can be worked around by modifying the calling method:

LGitCommit>>author
	^ LGitSignature fromHandle: (self commit_author: self)

but this shouldn't be required (as I understand it from Esteban).

Thanks,
Alistair

@estebanlm
Copy link
Member

yes, but this is a workaround :)
TFFI needs to answer the structure object.

@estebanlm estebanlm added the bug Something isn't working label Sep 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants