[squeak-dev] [BUG][FIX] FFI ExternalType>>isIntegerType
Igor Stasenko
siguctua at gmail.com
Sat Apr 10 07:38:20 UTC 2010
ExternalType signedLongLong isIntegerType
answers false
but:
ExternalType unsignedLongLong isIntegerType
answers true
Here's a fix:
isIntegerType
"Return true if the receiver is a built-in integer type"
| type |
type := self atomicType.
- ^type > FFITypeBool and:[type <= FFITypeUnsignedLongLong]
+ ^type > FFITypeBool and:[type <= FFITypeSignedLongLong]
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|