[squeak-dev] Re: becomeForward: alternative
Eliot Miranda
eliot.miranda at gmail.com
Fri Sep 19 14:33:22 UTC 2008
On Fri, Sep 19, 2008 at 12:36 AM, Paolo Bonzini <bonzini at gnu.org> wrote:
>
> > object_image->image.private = options & LINK_OPTION_PRIVATE) ==
> > LINK_OPTION_PRIVATE;
>
> Couldn't help it: if LINK_OPTION_PRIVATE is a single bit,
>
> object_image->image.private = (options & LINK_OPTION_PRIVATE) != 0;
Right. And hence even
object_image->image.private = options & LINK_OPTION_PRIVATE;
But this might fail because sizeof(options) might be greater than
sizeof(image.private) and hence yours is preferred.
>
> Paolo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080919/dbcc20c3/attachment.htm
More information about the Squeak-dev
mailing list
|