[Gambas-devel] About gb.gsl components

Benoît Minisini gambas at ...1...
Mon Aug 6 22:05:42 CEST 2012


Le 05/08/2012 19:26, Emil Lenngren a écrit :
> Bug: Is this typedef really correct?
> #define TYPE_are_objects(_t1, _t2) (((_t1) & (_t2)) >= T_OBJECT)
>
> Theoretically, _t1 could be 0xf0f0f0f0 and _t2 could be 0x0f0f0f00, both
> are valid pointers, but according to that typedef, they are not objects.

This is a well-known kind of optimizations often named as "bug". :-)

-- 
Benoît Minisini




More information about the Devel mailing list