Manuscript (Case [Issue]22241) UnifiedFFI - FFIExternalStructureType>>basicHandle: aHandle at: index put: value does not use index value

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22241) UnifiedFFI - FFIExternalStructureType>>basicHandle: aHandle at: index put: value does not use index value

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  UnifiedFFI: 1. Pharo Image  •  You are subscribed to this case
Current implementation of :

FFIExternalStructureType>>basicHandle: aHandle at: index put: value
^ LibC memCopy: value getHandle to: aHandle size: self externalTypeSize

does not use index value, I propose to rewrite it like this :

FFIExternalStructureType>>basicHandle: aHandle at: index put: value
^ LibC memCopy: value getHandle to: aHandle + (index - 1) size: self externalTypeSize
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Serge Stinckwich Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker