[Vm-dev] InterpreterProxy>>positiveMachineIntegerValueOf

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri Nov 4 18:52:38 UTC 2016

Hi Eliot,
we just have to integrate the usqIntptr_t changes that are ready in
oscogLLP64 branch.
I'm uploading an up-to-date version (if no timeout)

2016-11-04 19:30 GMT+01:00 Eliot Miranda <eliot.miranda at gmail.com>:

> Hi Nicolas,
>     with Win64 what;s the right way to declare something as having an
> unsigned integer type as large as the word size (unsigned long long on
> 64-bits, unsigned long on 32-bits)?
> This is to declare the following correctly.  Its return type is used to
> declare the function pointers inside a plugin correctly.  Currently it is
> not correctly defined for Win64:
> InterpreterProxy>>positiveMachineIntegerValueOf: oop
> <returnTypeC: #'unsigned long'>
> oop isInteger ifFalse:[self error: 'Not an integer object'].
> ^oop < 0
> ifTrue: [self primitiveFail. 0]
> ifFalse: [oop]
> _,,,^..^,,,_
> best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20161104/b47023ae/attachment.html>

More information about the Vm-dev mailing list