*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Sat, 13 Apr 2019 18:03:27 +0200
changeset 24075 0bf758e73c5f
parent 24074 69ee642ca7dd
child 24076 95f599b6fe97
*** empty log message ***
ExternalLibraryFunction.st
--- a/ExternalLibraryFunction.st	Sat Apr 13 17:59:14 2019 +0200
+++ b/ExternalLibraryFunction.st	Sat Apr 13 18:03:27 2019 +0200
@@ -630,14 +630,15 @@
     "/ care for 64bit machines
     aType == #SIZE_T          ifTrue:[^ ExternalBytes sizeofPointer == 8 ifTrue:[#uint64] ifFalse:[#uint32]].
 
-    aType isArray ifTrue:[
-	^ aType collect:[:each | self ffiTypeSymbolForType:each]
-    ].
-
     (aType isString or:[aType isSymbol]) ifFalse:[
+	aType isArray ifTrue:[
+	    ^ aType collect:[:each | self ffiTypeSymbolForType:each]
+	].
+
 	CType isNil ifTrue:[
 	    self error:'unknown type'.
 	].
+	"/ assume it is a ctype
 	^ aType typeSymbol.
     ].