[squeak-dev] FFI: FFI-Tools-mt.37.mcz

commits at source.squeak.org commits at source.squeak.org
Wed May 26 16:19:46 UTC 2021

Marcel Taeumel uploaded a new version of FFI-Tools to project FFI:

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

Name: FFI-Tools-mt.37
Author: mt
Time: 26 May 2021, 6:19:46.160788 pm
UUID: 5465025e-bcf2-9546-8bc9-f70d9f588e50
Ancestors: FFI-Tools-mt.36

Minor fix for object explorer, which affects closing the tool on a local array of null-pointers such as "ExternalType int32_t asPointerType allocate: 10".

=============== Diff against FFI-Tools-mt.36 ===============

Item was changed:
  ----- Method: ExternalData>>explorerOkToClose (in category '*FFI-Tools') -----
  	"Overwritten to also check by content type. That is, a byte array full of pointers is also managed here."
+ 	^ ((handle isExternalAddress and: [self isNull not]) or: [
+ 		self contentType isPointerType and: [self anySatisfy: [:ea | ea isNull not]]])
- 	^ ((handle isExternalAddress or: [self contentType isPointerType])
- 			and: [self isNull not])
  				ifTrue: [self confirmFree]
  				ifFalse: [true]!

More information about the Squeak-dev mailing list