[Vm-dev] InterpreterProxy>>positiveMachineIntegerValueOf

Eliot Miranda eliot.miranda at gmail.com
Fri Nov 4 18:30:17 UTC 2016


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/1428b23b/attachment.html>


More information about the Vm-dev mailing list