FFI: FFI-Kernel-mt.178.mcz

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

FFI: FFI-Kernel-mt.178.mcz

commits-2
Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-mt.178.mcz

==================== Summary ====================

Name: FFI-Kernel-mt.178
Author: mt
Time: 27 May 2021, 2:29:05.913609 pm
UUID: ddf66c8a-450b-1641-a21a-987c508b1281
Ancestors: FFI-Kernel-mt.177

I missed the #allocateExternal case. Sorry, I forgot to run the tests before committing. My bad. :-(

=============== Diff against FFI-Kernel-mt.177 ===============

Item was changed:
  ----- Method: ExternalArrayType>>allocateExternal (in category 'external data') -----
  allocateExternal
 
+ | data |
+ data := self contentType allocateExternal: self size.
+ ^ self isTypeAlias
+ ifTrue: [referentClass fromHandle: data getHandle]
+ ifFalse: [data]!
- ^ self contentType allocateExternal: self size!