[Vm-dev] Re: [OpenSmalltalk/opensmalltalk-vm] 931559: Replace another (UINT) cast by (usqIntptr_t) for L...

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri Jul 8 16:53:22 UTC 2016

Yes, maybe it would have worked, I don't know.
Analyzing if this warning is a true or false positive is costly and it's
hard to store the result of the query.
The best thing to do is to just eliminate the warning by providing
compatible types.

2016-07-08 14:46 GMT+02:00 Henrik Sperre Johansen <
henrik.s.johansen at veloxit.no>:

> Reading
> https://msdn.microsoft.com/en-us/library/windows/desktop/bb773352(v=vs.85).aspx
> Wouldn't either way work?
> The struct field is a UINT ID number, not a pointer, so truncating the
> pointer to use as id would be as good as putting a 64bit pointer in the
> struct, and then overwriting the last bits by subsequently setting uFlags,
> as long as they both consistently yield the same value in uID field based
> on
> hInstance.
> --
> View this message in context:
> http://forum.world.st/OpenSmalltalk-opensmalltalk-vm-931559-Replace-another-UINT-cast-by-usqIntptr-t-for-L-tp4905547p4905579.html
> Sent from the Squeak VM mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160708/ad3a3efd/attachment.htm

More information about the Vm-dev mailing list