In article <1169818742.745928.231770@[EMAIL PROTECTED]
>,
"southwesthustla" <fdkelly@[EMAIL PROTECTED]
> wrote:
> I note that in (MinGW) gpc a 'set' is internally a multiple of 4 bytes
> long. I would like to cast a 16-bit unsigned integer (i.e. size of 2
> bytes) onto a 16-element set. This should be possible, if the set was
> allowed to be 2 bytes long also.
Apart from the size difference, it's also quite possible that the
internal format of a set is different in GPC than in the previous
compiler you were using. Sets are generally opaque types, and depending
on them having a particular format is a bad thing.
It's better to rewrite your program in a way so it does not depend on
the internal format of sets, otherwise you'll run again into problems
when GPC changes its internal set representation (which isn't unlikely,
from what I've understood -- although it might be limited to big endian
systems).
Jonas


|